Skip to content

Commit

Permalink
[ruby/prism] Update lib/prism/translation/parser.rb
Browse files Browse the repository at this point in the history
ruby/prism@c3cc282343

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
  • Loading branch information
2 people authored and matzbot committed Feb 21, 2024
1 parent e3b9eec commit 45ae69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/translation/parser.rb
Expand Up @@ -116,7 +116,7 @@ def unwrap(result, offset_cache)
diagnostics.process(Diagnostic.new(error.message, :error, location))
end
result.warnings.each do |warning|
next unless valid_error?(warning)
next unless valid_warning?(warning)

location = build_range(warning.location, offset_cache)
diagnostics.process(Diagnostic.new(warning.message, :warning, location))
Expand Down

0 comments on commit 45ae69e

Please sign in to comment.