Commit b623b975 authored by Aniket-Engg's avatar Aniket-Engg Committed by Aniket

linting fix

parent 7db07e0b
...@@ -263,8 +263,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { ...@@ -263,8 +263,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
showWarningsByModule('Slither Analysis') showWarningsByModule('Slither Analysis')
} }
} }
}).catch((error) => { }).catch(() => {
props.analysisModule.call('terminal', 'log', { type: 'error', value: `[Slither Analysis]: Error occured! See remixd console for details.` }) props.analysisModule.call('terminal', 'log', { type: 'error', value: '[Slither Analysis]: Error occured! See remixd console for details.' })
}) })
}) })
} else { } else {
......
...@@ -56,11 +56,11 @@ export class SlitherClient extends PluginClient { ...@@ -56,11 +56,11 @@ export class SlitherClient extends PluginClient {
console.log('\x1b[32m%s\x1b[0m', `[Slither Analysis]: Compiler version is ${versionString}`) console.log('\x1b[32m%s\x1b[0m', `[Slither Analysis]: Compiler version is ${versionString}`)
let solcOutput: Buffer let solcOutput: Buffer
// Check solc current installed version // Check solc current installed version
try{ try {
solcOutput = execSync('solc --version', options) solcOutput = execSync('solc --version', options)
} catch(err) { } catch (err) {
console.log(err) console.log(err)
reject(new Error('Error in checking solc version')) reject(new Error('Error in running solc command'))
} }
if (!solcOutput.toString().includes(versionString)) { if (!solcOutput.toString().includes(versionString)) {
console.log('\x1b[32m%s\x1b[0m', '[Slither Analysis]: Compiler version is different from installed solc version') console.log('\x1b[32m%s\x1b[0m', '[Slither Analysis]: Compiler version is different from installed solc version')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment