This commit is contained in:
Marin Petrunić 2020-11-24 20:59:33 +01:00
parent ea01f26967
commit 51f0cb7c1b
No known key found for this signature in database
GPG Key ID: 834D07135E110DA5
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
export * from "./utils";
export * from "./utils";

View File

@ -1,8 +1,8 @@
import {PUBLIC_KEY_LENGTH, SIGNATURE_LENGTH} from "../constants";
export function assert(condition: unknown, message = "Assertion failed"): asserts condition {
if(!condition) {
throw new Error(message)
if (!condition) {
throw new Error(message);
}
}