Skip to content

Commit

Permalink
fixup! json-writer: print level key in SARIF output
Browse files Browse the repository at this point in the history
Warning is the default level so does not make any sense to do the
corresponding check.
  • Loading branch information
lzaoral committed Aug 26, 2022
1 parent 53994e8 commit 8ae1aba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/json-writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ static void sarifEncodeLevel(PTree *result, const std::string &event) {

if (boost::starts_with(event, "error"))
level = "error";
else if (boost::starts_with(event, "warning"))
level = "warning";
else if (boost::starts_with(event, "note"))
level = "note";

Expand Down

0 comments on commit 8ae1aba

Please sign in to comment.