Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/common-ts/src/common/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
9 changes: 6 additions & 3 deletions packages/hardhat-ovm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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, {
Expand Down
3 changes: 2 additions & 1 deletion tslint.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down