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