Skip to content

Commit

Permalink
Removed unnecessary conditional block
Browse files Browse the repository at this point in the history
  • Loading branch information
gratcliff committed Jul 18, 2019
1 parent 5b101d3 commit 996a4c1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 996a4c1

Please sign in to comment.