Skip to content

Commit

Permalink
fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nerfZael committed Oct 6, 2022
1 parent 9db091b commit 61eeecc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/js/wasm/src/helpers/createWasmWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export const createWasmWrapper = async (
if (
!wasmModuleOrFileReaderOrManifestOptions ||
(wasmModuleOrFileReaderOrManifestOptions as GetManifestOptions)
.noValidate === true ||
(wasmModuleOrFileReaderOrManifestOptions as GetManifestOptions)
.noValidate === false
.noValidate !== undefined
) {
const result = await createWasmPackage(
manifestBufferOrFileReader
Expand All @@ -33,8 +31,7 @@ export const createWasmWrapper = async (
return result.value as WasmWrapper;
} else if (
!fileReaderOrManifestOptions ||
(fileReaderOrManifestOptions as GetManifestOptions).noValidate === true ||
(fileReaderOrManifestOptions as GetManifestOptions).noValidate === false
(fileReaderOrManifestOptions as GetManifestOptions).noValidate !== undefined
) {
const result = await createWasmPackage(
manifestBufferOrFileReader,
Expand Down

0 comments on commit 61eeecc

Please sign in to comment.