aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-30 23:52:21 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-31 00:02:46 +0800
commitfe7a62ba9a0d1647ea94683a0369b98e2a675f94 (patch)
treebd6490bddab48e375603604c230938baaaf35970 /packages
parentb88a56e6b723016cf830511b2da503747e086f54 (diff)
downloaddexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar
dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.gz
dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.bz2
dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.lz
dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.xz
dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.tar.zst
dexon-sol-tools-fe7a62ba9a0d1647ea94683a0369b98e2a675f94.zip
add named var to make `if` condition more readable
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts3
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;
}