fix lint
This commit is contained in:
parent
ea01f26967
commit
51f0cb7c1b
|
@ -1 +1 @@
|
||||||
export * from "./utils";
|
export * from "./utils";
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import {PUBLIC_KEY_LENGTH, SIGNATURE_LENGTH} from "../constants";
|
import {PUBLIC_KEY_LENGTH, SIGNATURE_LENGTH} from "../constants";
|
||||||
|
|
||||||
export function assert(condition: unknown, message = "Assertion failed"): asserts condition {
|
export function assert(condition: unknown, message = "Assertion failed"): asserts condition {
|
||||||
if(!condition) {
|
if (!condition) {
|
||||||
throw new Error(message)
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue