diff --git a/lib/swagger.js b/lib/swagger.js index 7e03d07a1..0d1c79242 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -125,12 +125,8 @@ exports.run = async function({ args, opts }) { } console.log(`We found ${file} and are attempting to upload it.`.yellow); - foundFile = file; - }); - - if (foundFile) { resolve(callApi(foundFile, selectedVersion)); - } + }); reject( new Error(