Skip to content

Commit

Permalink
Merge pull request kitodo#5953 from slub/fix_bitwise_with_logical_or
Browse files Browse the repository at this point in the history
Replace bit or with logical or condition
  • Loading branch information
solth authored Apr 2, 2024
2 parents 47b263c + 0478f38 commit 26a97fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ public boolean containsFiles(String stringWithVariables) {
if (Objects.isNull(stringWithVariables)) {
return false;
}
return stringWithVariables.contains("(filename)") | stringWithVariables.contains("(basename)")
| stringWithVariables.contains("(relativepath)");
return stringWithVariables.contains("(filename)") || stringWithVariables.contains("(basename)")
|| stringWithVariables.contains("(relativepath)");
}

/**
Expand Down

0 comments on commit 26a97fd

Please sign in to comment.