diff --git a/src/core/index.js b/src/core/index.js index 26405fcf..48a63fae 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -95,7 +95,7 @@ module.exports = function SwaggerUI(opts) { return system } - if (!system.specActions.getConfigByUrl || system.specActions.getConfigByUrl && !system.specActions.getConfigByUrl(downloadSpec)) { + if (!system.specActions.getConfigByUrl || (system.specActions.getConfigByUrl && !system.specActions.getConfigByUrl(downloadSpec))) { return downloadSpec(constructorConfig) }