From 996a4c1d76f965b4080f48fa8fd91c31eab58298 Mon Sep 17 00:00:00 2001 From: Gabriel Ratcliff Date: Thu, 18 Jul 2019 15:16:34 -0700 Subject: [PATCH] Removed unnecessary conditional block --- lib/swagger.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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(