From 36c936be0a023a83f6608e620d46c41cbca5b1fd Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 15 Feb 2022 14:41:15 +0530 Subject: [PATCH] linting fix --- libs/remix-core-plugin/src/lib/compiler-artefacts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-core-plugin/src/lib/compiler-artefacts.ts b/libs/remix-core-plugin/src/lib/compiler-artefacts.ts index 1732337394..041b98199e 100644 --- a/libs/remix-core-plugin/src/lib/compiler-artefacts.ts +++ b/libs/remix-core-plugin/src/lib/compiler-artefacts.ts @@ -75,11 +75,11 @@ export class CompilerArtefacts extends Plugin { getArtefactsByContractName (contractName) { const contractsDataByFilename = this.getAllContractDatas() const contractsData = Object.values(contractsDataByFilename) - if(contractsData && contractsData.length) { + if (contractsData && contractsData.length) { const index = contractsData.findIndex((contractsObj) => Object.keys(contractsObj).includes(contractName)) - if (index != -1) return contractsData[index][contractName] + if (index !== -1) return contractsData[index][contractName] else throw new Error(`Could not find artifacts for ${contractName}. Make sure it is compiled.`) - } else throw new Error(`No contract compiled`) + } else throw new Error('No contract compiled') } getCompilerAbstract (file) {