aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
diff options
context:
space:
mode:
authorperissology <perissology@protonmail.com>2018-06-22 00:12:30 +0800
committerperissology <perissology@protonmail.com>2018-06-22 00:12:30 +0800
commitade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94 (patch)
tree1d63e121c33bc4b0b0369b3156a5aca306de8ce3 /packages/sol-cov
parentc5ea985a7003fef8430555e8477a130262407137 (diff)
downloaddexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar
dexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.gz
dexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.bz2
dexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.lz
dexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.xz
dexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.zst
dexon-0x-contracts-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.zip
fix linter issues
Diffstat (limited to 'packages/sol-cov')
-rw-r--r--packages/sol-cov/src/source_maps.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-cov/src/source_maps.ts b/packages/sol-cov/src/source_maps.ts
index 39b83ea0d..90b21dda1 100644
--- a/packages/sol-cov/src/source_maps.ts
+++ b/packages/sol-cov/src/source_maps.ts
@@ -36,7 +36,7 @@ export function parseSourceMap(
): { [programCounter: number]: SourceRange } {
const bytecode = Uint8Array.from(Buffer.from(bytecodeHex, 'hex'));
const pcToInstructionIndex: { [programCounter: number]: number } = getPcToInstructionIndexMapping(bytecode);
- const locationByOffsetByFileIndex = _.map(sourceCodes, (s) => _.isUndefined(s) ? {} : getLocationByOffset(s));
+ const locationByOffsetByFileIndex = _.map(sourceCodes, s => (_.isUndefined(s) ? {} : getLocationByOffset(s)));
const entries = srcMap.split(';');
let lastParsedEntry: SourceLocation = {} as any;
const instructionIndexToSourceRange: { [instructionIndex: number]: SourceRange } = {};