Skip to content

Commit

Permalink
Fixed Code Smells
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrdi committed Oct 24, 2023
1 parent f29d594 commit 9aebda6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2255,10 +2255,6 @@ private boolean checkEditTasksPerm(TaskSummary task) {
String workbasketId = task.getWorkbasketSummary().getId();
WorkbasketSummary workbasket =
query.idIn(workbasketId).callerHasPermissions(WorkbasketPermission.EDITTASKS).single();
if (workbasket == null) {
return false;
} else {
return true;
}
return workbasket != null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ private String[] addNullToOwnerIn() {
if (this.ownerIn == null) {
return new String[]{null};
}
List<String> ownerInAsList = new ArrayList(Arrays.asList(this.ownerIn));
List<String> ownerInAsList = new ArrayList<>(Arrays.asList(this.ownerIn));
ownerInAsList.add(null);
return ownerInAsList.toArray(new String[ownerInAsList.size()]);
}
Expand Down

0 comments on commit 9aebda6

Please sign in to comment.