diff options
Diffstat (limited to 'src/Main.java')
-rw-r--r-- | src/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.java b/src/Main.java index 4f5d45f..f53b410 100644 --- a/src/Main.java +++ b/src/Main.java @@ -54,7 +54,7 @@ public class Main { Node ast = visitor.visit(tree); ArrayList<SemanticError> errorsWithDup = ast.checkSemantics(ST, 0); ArrayList<SemanticError> errors = Share.removeDuplicates(errorsWithDup); - if (errors.size() > 0) { + if (!errors.isEmpty()) { System.out.println("You had " + errors.size() + " errors:"); for (SemanticError e : errors) { System.out.println("\t" + e); |