linting fix

pull/1398/head
Aniket-Engg 3 years ago committed by Aniket
parent 7db07e0b33
commit b623b975ec
  1. 4
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
  2. 6
      libs/remixd/src/services/slitherClient.ts

@ -263,8 +263,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
showWarningsByModule('Slither Analysis')
}
}
}).catch((error) => {
props.analysisModule.call('terminal', 'log', { type: 'error', value: `[Slither Analysis]: Error occured! See remixd console for details.` })
}).catch(() => {
props.analysisModule.call('terminal', 'log', { type: 'error', value: '[Slither Analysis]: Error occured! See remixd console for details.' })
})
})
} else {

@ -56,11 +56,11 @@ export class SlitherClient extends PluginClient {
console.log('\x1b[32m%s\x1b[0m', `[Slither Analysis]: Compiler version is ${versionString}`)
let solcOutput: Buffer
// Check solc current installed version
try{
try {
solcOutput = execSync('solc --version', options)
} catch(err) {
} catch (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)) {
console.log('\x1b[32m%s\x1b[0m', '[Slither Analysis]: Compiler version is different from installed solc version')

Loading…
Cancel
Save