diff options
author | perissology <perissology@protonmail.com> | 2018-06-22 00:12:30 +0800 |
---|---|---|
committer | perissology <perissology@protonmail.com> | 2018-06-22 00:12:30 +0800 |
commit | ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94 (patch) | |
tree | 1d63e121c33bc4b0b0369b3156a5aca306de8ce3 /packages | |
parent | c5ea985a7003fef8430555e8477a130262407137 (diff) | |
download | dexon-sol-tools-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.gz dexon-sol-tools-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.tar.zst dexon-sol-tools-ade8e95d2e1c46bb1a3f8212a6eac5f396bc3e94.zip |
fix linter issues
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-cov/src/source_maps.ts | 2 |
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 } = {}; |