Commit c949803f authored by smartcontracts's avatar smartcontracts Committed by GitHub

style: require curly braces for if statements (#835)

parent aa4f4620
......@@ -41,7 +41,9 @@ export class Logger {
}),
})
}
if (options.streams) loggerStreams = loggerStreams.concat(options.streams)
if (options.streams) {
loggerStreams = loggerStreams.concat(options.streams)
}
this.inner = pino(loggerOptions, pinoms.multistream(loggerStreams))
}
......
......@@ -47,8 +47,9 @@ const getOvmSolcPath = async (version: string): Promise<string> => {
const ovmCompilersCache = path.join(await getCompilersDir(), 'ovm')
// Need to create the OVM compiler cache folder if it doesn't already exist.
if (!fs.existsSync(ovmCompilersCache))
[fs.mkdirSync(ovmCompilersCache, { recursive: true })]
if (!fs.existsSync(ovmCompilersCache)) {
fs.mkdirSync(ovmCompilersCache, { recursive: true })
}
// Pull information about the latest commit in the solc-bin repo. We'll use this to invalidate
// our compiler cache if necessary.
......@@ -186,7 +187,9 @@ subtask(
}
}
if (Object.keys(ovmInput.sources).length === 0) return {}
if (Object.keys(ovmInput.sources).length === 0) {
return {}
}
// Build both inputs separately.
const ovmOutput = await hre.run(TASK_COMPILE_SOLIDITY_RUN_SOLCJS, {
......
......@@ -27,7 +27,8 @@
"variable-name": false,
"no-focused-test": true,
"array-type": false,
"prettier": [true, "./.prettierrc.json"]
"prettier": [true, "./.prettierrc.json"],
"curly": true
},
"linterOptions": {
"exclude": [
......
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