Skip to content

Commit f2ac556

Browse files
committed
combines if statements to make codacy happy
1 parent 91b2d38 commit f2ac556

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/main/java/org/scijava/batch/ModuleBatchProcessor.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ public void run() {
120120
}
121121

122122
String taskName = "Batch:";
123-
if (scriptModule.getInfo()!=null) {
124-
if (scriptModule.getInfo().getName()!=null)
123+
if ((scriptModule.getInfo()!=null) && (scriptModule.getInfo().getName()!=null)) {
125124
taskName = scriptModule.getInfo().getName();
126125
}
127126
Task batchTask = taskService.createTask(taskName);

0 commit comments

Comments
 (0)