Skip to content

Commit

Permalink
Fix a warning for Ruby::UnannotatedEmptyCollection
Browse files Browse the repository at this point in the history
```
lib/lrama/grammar.rb:385:15: [warning] Empty array doesn't have type annotation
│ Diagnostic ID: Ruby::UnannotatedEmptyCollection
│
└       errors = []
                 ~~
```
  • Loading branch information
ydah committed Dec 15, 2024
1 parent fb3ecbb commit a48c27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/grammar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def fill_sym_to_rules
end

def validate_rule_lhs_is_nterm!
errors = []
errors = [] #: Array[String]

rules.each do |rule|
next if rule.lhs.nterm?
Expand Down

0 comments on commit a48c27d

Please sign in to comment.