Skip to content

Commit c3cc282

Browse files
noahgibbskddnewton
andauthored
Update lib/prism/translation/parser.rb
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
1 parent ea7e400 commit c3cc282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prism/translation/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def unwrap(result, offset_cache)
116116
diagnostics.process(Diagnostic.new(error.message, :error, location))
117117
end
118118
result.warnings.each do |warning|
119-
next unless valid_error?(warning)
119+
next unless valid_warning?(warning)
120120

121121
location = build_range(warning.location, offset_cache)
122122
diagnostics.process(Diagnostic.new(warning.message, :warning, location))

0 commit comments

Comments
 (0)