File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
lib/taskana-core/src/main/java/pro/taskana/task/internal
rest/taskana-rest-spring/src/main/java/pro/taskana/task/rest Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2255,10 +2255,6 @@ private boolean checkEditTasksPerm(TaskSummary task) {
22552255 String workbasketId = task .getWorkbasketSummary ().getId ();
22562256 WorkbasketSummary workbasket =
22572257 query .idIn (workbasketId ).callerHasPermissions (WorkbasketPermission .EDITTASKS ).single ();
2258- if (workbasket == null ) {
2259- return false ;
2260- } else {
2261- return true ;
2262- }
2258+ return workbasket != null ;
22632259 }
22642260}
Original file line number Diff line number Diff line change @@ -2205,7 +2205,7 @@ private String[] addNullToOwnerIn() {
22052205 if (this .ownerIn == null ) {
22062206 return new String []{null };
22072207 }
2208- List <String > ownerInAsList = new ArrayList (Arrays .asList (this .ownerIn ));
2208+ List <String > ownerInAsList = new ArrayList <> (Arrays .asList (this .ownerIn ));
22092209 ownerInAsList .add (null );
22102210 return ownerInAsList .toArray (new String [ownerInAsList .size ()]);
22112211 }
You can’t perform that action at this time.
0 commit comments