Refactor the format
This commit is contained in:
parent
cae8f549ba
commit
0b11be8442
1 changed files with 4 additions and 1 deletions
|
@ -161,8 +161,11 @@ public class SortServer implements CommandExecutor {
|
|||
// Sortiermethode)
|
||||
|
||||
elapsed = (double) ((endTime - startTime) / count);
|
||||
if (!isSorted(b))
|
||||
|
||||
if (!isSorted(b)) {
|
||||
throw new Exception("ERROR not sorted");
|
||||
}
|
||||
|
||||
return elapsed;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue