Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Mar 2, 2021
1 parent b74ae07 commit 83aa194
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/schema/bind/src/bindings/wasm-as/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ const toWasmArray = (type: string, nullable: boolean): string => {
return applyNullable("Array<" + wasmType + ">", nullable, false);
};

const applyNullable = (type: string, nullable: boolean, isEnum: boolean): string => {
const applyNullable = (
type: string,
nullable: boolean,
isEnum: boolean
): string => {
if (nullable) {
if (
type.indexOf("Array") === 0 ||
Expand Down
6 changes: 4 additions & 2 deletions packages/wasm/as/assembly/msgpack/ReadDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,12 @@ export class ReadDecoder extends Read {

isNextString(): bool {
const format = this.view.peekUint8();
return isFixedString(format) ||
return (
isFixedString(format) ||
format == Format.STR8 ||
format == Format.STR16 ||
format == Format.STR32;
format == Format.STR32
);
}

private skip(): void {
Expand Down

0 comments on commit 83aa194

Please sign in to comment.