Skip to content

Commit 050a055

Browse files
committed
apply prettier
1 parent 56d2d16 commit 050a055

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

src/DecodeError.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export class DecodeError extends Error {
32
constructor(message: string) {
43
super(message);

src/Decoder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ export class Decoder<ContextType = undefined> {
176176
);
177177
}
178178

179-
public decodeArrayStream(stream: AsyncIterable<ArrayLike<number> | BufferSource>): AsyncGenerator<unknown, void, unknown> {
179+
public decodeArrayStream(
180+
stream: AsyncIterable<ArrayLike<number> | BufferSource>,
181+
): AsyncGenerator<unknown, void, unknown> {
180182
return this.decodeMultiAsync(stream, true);
181183
}
182184

test/codec-bigint.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ const extensionCodec = new ExtensionCodec();
55
extensionCodec.register({
66
type: 0,
77
encode: (input: unknown) => {
8-
if (typeof input === "bigint") {
9-
if (input <= Number.MAX_SAFE_INTEGER && input >= Number.MIN_SAFE_INTEGER) {
10-
return encode(parseInt(input.toString(), 10));
11-
} else {
12-
return encode(input.toString());
13-
}
14-
} else {
15-
return null;
16-
}
8+
if (typeof input === "bigint") {
9+
if (input <= Number.MAX_SAFE_INTEGER && input >= Number.MIN_SAFE_INTEGER) {
10+
return encode(parseInt(input.toString(), 10));
11+
} else {
12+
return encode(input.toString());
13+
}
14+
} else {
15+
return null;
16+
}
1717
},
1818
decode: (data: Uint8Array) => {
1919
const val = decode(data);

test/deno_test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/usr/bin/env deno run
22

33
/* eslint-disable */
4-
import {
5-
assertEquals,
6-
} from "https://deno.land/std/testing/asserts.ts";
4+
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
75
import * as msgpack from "../mod.ts";
86

97
Deno.test("Hello, world!", () => {

0 commit comments

Comments
 (0)