aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}