diff options
| author | Noah Gibbs <the.codefolio.guy@gmail.com> | 2024-02-21 20:55:32 +0000 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-21 22:38:48 +0000 |
| commit | 45ae69e37e1dac60ea8f6d682ff7b947cb8057d0 (patch) | |
| tree | d1f8d23a4e305310a56efb79b4769de79a74a9df | |
| parent | e3b9eec3498df88ef130098c4db5377ec156988b (diff) | |
[ruby/prism] Update lib/prism/translation/parser.rb
https://github.com/ruby/prism/commit/c3cc282343
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
| -rw-r--r-- | lib/prism/translation/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/translation/parser.rb b/lib/prism/translation/parser.rb index 7117643cdc..c9e4f148ce 100644 --- a/lib/prism/translation/parser.rb +++ b/lib/prism/translation/parser.rb @@ -116,7 +116,7 @@ module Prism 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)) |
