diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-12 12:41:00 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-12 12:41:00 +0530 |
commit | f180d0580457e1e9bd502293df327dfe138dd422 (patch) | |
tree | 11b9eecb7a74acf7cfe36ccbc3366905718d8a1d /packages/taler-wallet-core/src/util | |
parent | 0050bf005a40cab3b4fdc43f2960025e8d52e176 (diff) | |
download | wallet-core-f180d0580457e1e9bd502293df327dfe138dd422.tar.xz |
remove excessive namespacing, format
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/talerconfig-test.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/util/talerconfig.ts | 10 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/util/timer.ts | 6 |
3 files changed, 11 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/util/talerconfig-test.ts b/packages/taler-wallet-core/src/util/talerconfig-test.ts index 71359fd38..2f920fccf 100644 --- a/packages/taler-wallet-core/src/util/talerconfig-test.ts +++ b/packages/taler-wallet-core/src/util/talerconfig-test.ts @@ -29,7 +29,7 @@ test("pathsub", (t) => { w: "world", f: "foo", "1foo": "x", - "foo_bar": "quux", + foo_bar: "quux", }; t.is( diff --git a/packages/taler-wallet-core/src/util/talerconfig.ts b/packages/taler-wallet-core/src/util/talerconfig.ts index e9a67287c..d121601c5 100644 --- a/packages/taler-wallet-core/src/util/talerconfig.ts +++ b/packages/taler-wallet-core/src/util/talerconfig.ts @@ -79,7 +79,7 @@ export class ConfigValue<T> { /** * Shell-style path substitution. - * + * * Supported patterns: * "$x" (look up "x") * "${x}" (look up "x") @@ -240,7 +240,9 @@ export class Configuration { } else if (x === "no") { return false; } - throw Error(`invalid config value for [${secNorm}]/${optNorm}, expected yes/no`); + throw Error( + `invalid config value for [${secNorm}]/${optNorm}, expected yes/no`, + ); }; return new ConfigValue(secNorm, optNorm, val, convert); } @@ -253,7 +255,9 @@ export class Configuration { try { return Number.parseInt(x, 10); } catch (e) { - throw Error(`invalid config value for [${secNorm}]/${optNorm}, expected number`); + throw Error( + `invalid config value for [${secNorm}]/${optNorm}, expected number`, + ); } }; return new ConfigValue(secNorm, optNorm, val, convert); diff --git a/packages/taler-wallet-core/src/util/timer.ts b/packages/taler-wallet-core/src/util/timer.ts index d652fdcda..75fb5c9c0 100644 --- a/packages/taler-wallet-core/src/util/timer.ts +++ b/packages/taler-wallet-core/src/util/timer.ts @@ -121,7 +121,7 @@ const nullTimerHandle = { unref() { // do nothing return; - } + }, }; /** @@ -173,7 +173,7 @@ export class TimerGroup { }, unref() { h.unref(); - } + }, }; } @@ -195,7 +195,7 @@ export class TimerGroup { }, unref() { h.unref(); - } + }, }; } } |