From c5222153d008e6f97fc1cb22d9a13e8b048f9065 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Sun, 19 Mar 2017 18:23:56 -0700 Subject: [PATCH] De-mystify compound logic --- src/core/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }