From 148f9569d4c2463cc0511d3622a026e3b39ce91c Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 27 Nov 2018 14:13:34 +0100 Subject: [PATCH] Bump dev, cleanup new TS additional checks (#259) --- package.json | 2 +- packages/db/src/FileFlatDb/index.ts | 3 --- packages/keyring/src/testingPairs.ts | 2 +- packages/trie-codec/src/decode.ts | 2 +- yarn.lock | 8 ++++---- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index eba3fd006..f9835d41a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@babel/core": "^7.1.6", - "@polkadot/dev": "^0.22.1", + "@polkadot/dev": "^0.22.2", "@polkadot/ts": "^0.1.39" } } diff --git a/packages/db/src/FileFlatDb/index.ts b/packages/db/src/FileFlatDb/index.ts index 54de8408d..2a2560b89 100644 --- a/packages/db/src/FileFlatDb/index.ts +++ b/packages/db/src/FileFlatDb/index.ts @@ -24,7 +24,6 @@ const l = logger('db/flat'); export default class FileFlatDb implements BaseDb { private _fd: number; private _fileSize: number = 0; - private _base: string; private _path: string; private _file: string; private _isCompressed: boolean; @@ -33,7 +32,6 @@ export default class FileFlatDb implements BaseDb { constructor (base: string, file: string = defaults.DEFAULT_FILE, options: BaseDbOptions = {}) { this._fd = -1; - this._base = base; this._file = file; this._path = path.join(base, file); this._lruBranch = new LRUMap(LRU_BRANCH_COUNT); @@ -87,7 +85,6 @@ export default class FileFlatDb implements BaseDb { const oldPath = this._path; - this._base = base; this._file = file; this._path = path.join(base, file); diff --git a/packages/keyring/src/testingPairs.ts b/packages/keyring/src/testingPairs.ts index 591f612bd..bf3054ff4 100644 --- a/packages/keyring/src/testingPairs.ts +++ b/packages/keyring/src/testingPairs.ts @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { KeyringPair, KeyringInstance } from './types'; +import { KeyringPair } from './types'; import createKeyring from './testing'; import nobody from './pair/nobody'; diff --git a/packages/trie-codec/src/decode.ts b/packages/trie-codec/src/decode.ts index 8f7de7fa1..98f6d93cd 100644 --- a/packages/trie-codec/src/decode.ts +++ b/packages/trie-codec/src/decode.ts @@ -68,7 +68,7 @@ function _decode (input: null | Uint8Array): Uint8Array | null | Array