Skip to content

Commit 8ae1aba

Browse files
committed
fixup! json-writer: print level key in SARIF output
Warning is the default level so does not make any sense to do the corresponding check.
1 parent 53994e8 commit 8ae1aba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/json-writer.cc

-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ static void sarifEncodeLevel(PTree *result, const std::string &event) {
220220

221221
if (boost::starts_with(event, "error"))
222222
level = "error";
223-
else if (boost::starts_with(event, "warning"))
224-
level = "warning";
225223
else if (boost::starts_with(event, "note"))
226224
level = "note";
227225

0 commit comments

Comments
 (0)