Skip to content

Commit

Permalink
Skip SensitiveDataLoggingCodemod when LLM not available (#419)
Browse files Browse the repository at this point in the history
This codemod does not inherit from the base class with the existing
check so it did not benefit from the work in #418.
  • Loading branch information
drdavella committed Jul 11, 2024
1 parent 02b25a8 commit 785ead7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ private static Optional<Statement> getSingleStatement(

@Override
public boolean shouldRun() {
if (!service.isServiceAvailable()) {
return false;
}
List<Run> runs = sarif.rawDocument().getRuns();
return runs != null && !runs.isEmpty() && !runs.get(0).getResults().isEmpty();
}
Expand Down

0 comments on commit 785ead7

Please sign in to comment.