Skip to content

Commit

Permalink
refactor: Common static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
natedanner and TeamModerne committed Apr 18, 2024
1 parent f7ebc7e commit d80df68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/yourorg/SimplifyTernary.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ boolean before(boolean expr) {
@AfterTemplate
boolean after(boolean expr) {
// We wrap the expression in parentheses as the input expression might be a complex expression
return !(expr);
return !expr;
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/yourorg/UpdateConcoursePipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
@Override
public Yaml.Mapping.Entry visitMappingEntry(Yaml.Mapping.Entry entry, ExecutionContext ctx) {
Yaml.Mapping.Entry e = super.visitMappingEntry(entry, ctx);
if (e.getKey().getValue().equals("source")) {
if ("source".equals(e.getKey().getValue())) {
Yaml.Block value = e.getValue();
if (!(value instanceof Yaml.Mapping)) {
return e;
Expand Down

0 comments on commit d80df68

Please sign in to comment.