diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-03 13:00:48 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-03 13:01:05 +0530 |
commit | ffd2a62c3f7df94365980302fef3bc3376b48182 (patch) | |
tree | 270af6f16b4cc7f5da2afdba55c8bc9dbea5eca5 /packages/idb-bridge/src/util/makeStoreKeyValue.ts | |
parent | aa481e42675fb7c4dcbbeec0ba1c61e1953b9596 (diff) | |
download | wallet-core-ffd2a62c3f7df94365980302fef3bc3376b48182.tar.xz |
modularize repo, use pnpm, improve typechecking
Diffstat (limited to 'packages/idb-bridge/src/util/makeStoreKeyValue.ts')
-rw-r--r-- | packages/idb-bridge/src/util/makeStoreKeyValue.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/idb-bridge/src/util/makeStoreKeyValue.ts b/packages/idb-bridge/src/util/makeStoreKeyValue.ts index 9b33158dd..f9006ef51 100644 --- a/packages/idb-bridge/src/util/makeStoreKeyValue.ts +++ b/packages/idb-bridge/src/util/makeStoreKeyValue.ts @@ -14,7 +14,6 @@ permissions and limitations under the License. */ - import { Value, Key, KeyPath } from "./types"; import extractKey from "./extractKey"; import { DataError } from "./errors"; @@ -93,7 +92,7 @@ export function makeStoreKeyValue( key: key, value: value, updatedKeyGenerator, - } + }; } else { // (no, yes, no) key = extractKey(keyPath!, value); @@ -111,7 +110,7 @@ export function makeStoreKeyValue( key: currentKeyGenerator, value: value, updatedKeyGenerator: currentKeyGenerator + 1, - } + }; } else { // (no, no, no) throw new DataError(); |