From 02554cc727b331b5b15232b5665de0e75d32349d Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 16 Aug 2021 17:55:30 +0200 Subject: [PATCH] linting --- libs/remixd/src/services/slitherClient.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libs/remixd/src/services/slitherClient.ts b/libs/remixd/src/services/slitherClient.ts index c4867e598c..2399dabe61 100644 --- a/libs/remixd/src/services/slitherClient.ts +++ b/libs/remixd/src/services/slitherClient.ts @@ -114,24 +114,23 @@ export class SlitherClient extends PluginClient { // Allow paths and set solc remapping for import URLs const fileContent = readFileSync(`${this.currentSharedFolder}/${filePath}`, 'utf8') const importsArr = fileContent.match(/import ['"][^.|..](.+?)['"];/g) - let allowPaths = ''; let remaps = '' + let remaps = '' if (importsArr?.length) { - const { remapString, allowPathString } = this.mapNpmDepsDir(importsArr) - allowPaths = allowPathString + const { remapString } = this.mapNpmDepsDir(importsArr) remaps = remapString.trim() } const optimizeOption: string = optimize ? '--optimize' : '' const evmOption: string = evmVersion ? `--evm-version ${evmVersion}` : '' let solcArgs = '' if (optimizeOption) { - solcArgs += optimizeOption + ' ' + solcArgs += optimizeOption + ' ' } if (evmOption) { - if (!solcArgs.endsWith(' ')) solcArgs += ' ' - solcArgs += evmOption; + if (!solcArgs.endsWith(' ')) solcArgs += ' ' + solcArgs += evmOption } if (solcArgs) { - solcArgs = `--solc-args "${solcArgs.trimStart()}"`; + solcArgs = `--solc-args "${solcArgs.trimStart()}"` } const solcRemaps = remaps ? `--solc-remaps "${remaps}"` : ''