Skip to content

Commit

Permalink
Simplify ApposeTest helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Sep 25, 2024
1 parent b7a4620 commit e713a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/org/apposed/appose/ApposeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ private void maybeDebug(Service service) {
private boolean falsy(String value) {
if (value == null) return true;
String tValue = value.trim();
if (tValue.isEmpty()) return true;
if (tValue.equalsIgnoreCase("false")) return true;
if (tValue.equals("0")) return true;
return false;
return tValue.isEmpty() ||
tValue.equalsIgnoreCase("false") ||
tValue.equals("0");
}

private void assertComplete(Task task) {
String errorMessage = "";
if (task.status != TaskStatus.COMPLETE) {
Expand Down

0 comments on commit e713a2d

Please sign in to comment.