Skip to content

Commit d085c79

Browse files
author
Phil Sturgeon
authored
Merge pull request #65 from vaskevich/patch-1
Don't print success message with --quiet switch
2 parents a6f25da + 2c4d400 commit d085c79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lint.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ const command = async (file, cmd) => {
106106
process.exit(1);
107107
}
108108

109-
console.log(colors.green + 'Specification is valid, with 0 lint errors' + colors.reset)
109+
if (!cmd.quiet) {
110+
console.log(colors.green + 'Specification is valid, with 0 lint errors' + colors.reset)
111+
}
110112
process.exit(0);
111113
});
112114
};

0 commit comments

Comments
 (0)