summaryrefslogtreecommitdiff
path: root/src/ParseAll.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ParseAll.java')
-rw-r--r--src/ParseAll.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ParseAll.java b/src/ParseAll.java
index 568c89c..7def6f4 100644
--- a/src/ParseAll.java
+++ b/src/ParseAll.java
@@ -41,7 +41,7 @@ public class ParseAll {
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();
System.out.println(fileStr);
System.out.println("You had " + errors.size() + " errors:");