Skip to content

Commit 47fbfa8

Browse files
committed
removed error handling
1 parent 87f1146 commit 47fbfa8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/swagger.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ exports.run = function({ args, opts }) {
2828
}
2929

3030
function success(data) {
31-
const msg = data.headers.location
32-
? `You've successfully uploaded a new swagger file to your ReadMe project! See what was imported here: ${data.headers.location}`
33-
: 'Success!';
34-
35-
console.log(msg.green);
31+
console.log(
32+
`You've successfully uploaded a new swagger file to your ReadMe project! See what was imported here: ${data.headers.location}`
33+
.green,
34+
);
3635
console.log(
3736
`Run 'rdme swagger FILE --key=API_KEY --id=${
3837
// eslint-disable-next-line

0 commit comments

Comments
 (0)