diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-08-30 23:52:21 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-08-31 00:02:46 +0800 |
commit | fe7a62ba9a0d1647ea94683a0369b98e2a675f94 (patch) | |
tree | bd6490bddab48e375603604c230938baaaf35970 | |
parent | b88a56e6b723016cf830511b2da503747e086f54 (diff) | |
download | dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.gz dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.zst dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.zip |
add named var to make `if` condition more readable
-rw-r--r-- | packages/sol-doc/src/solidity_doc_generator.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts index 856787e5f..bb2f4cea6 100644 --- a/packages/sol-doc/src/solidity_doc_generator.ts +++ b/packages/sol-doc/src/solidity_doc_generator.ts @@ -36,7 +36,8 @@ export class SolidityDocGenerator { * @return doc objects for use with documentation generation tools. */ public async generateAsync(contractsToCompile: string[]): Promise<DocAgnosticFormat> { - if (!_.isUndefined(contractsToCompile)) { + const shouldOverrideCatchAllContractsConfig = !_.isUndefined(contractsToCompile); + if (shouldOverrideCatchAllContractsConfig) { this._compilerOptions.contracts = contractsToCompile; } |