summaryrefslogtreecommitdiff
path: root/projects/hackc/classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hackc/classes.py')
-rw-r--r--projects/hackc/classes.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/projects/hackc/classes.py b/projects/hackc/classes.py
index a8d446a..b300d98 100644
--- a/projects/hackc/classes.py
+++ b/projects/hackc/classes.py
@@ -61,8 +61,6 @@ class Class:
subroutines.append(subroutine)
t += dt
- if t == tokens_total:
- raise JackSyntaxError(f"Class {self.name} ends unexpectedly", tokens[-1])
end = tokens[t]
if end != RIGHT_BRACE:
raise JackSyntaxError(