diff options
Diffstat (limited to 'extension/background/emscriptif.ts')
-rw-r--r-- | extension/background/emscriptif.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extension/background/emscriptif.ts b/extension/background/emscriptif.ts index b5b040dc5..46937d088 100644 --- a/extension/background/emscriptif.ts +++ b/extension/background/emscriptif.ts @@ -302,7 +302,7 @@ class Amount extends ArenaObject { } - static getZero(currency: string, a?: Arena) { + static getZero(currency: string, a?: Arena): Amount { let am = new Amount(null, a); let r = emsc.amount_get_zero(currency, am.getNative()); if (r != GNUNET_OK) { @@ -590,7 +590,6 @@ class HashCode extends PackedArenaObject { case "nonce": qual = RandomQuality.NONCE; break; - break; default: throw Error(format("unknown crypto quality: {0}", qual)); } |