Skip to content

Commit 87cc2fd

Browse files
kddnewtonmatzbot
authored andcommitted
[ruby/prism] Fix up invalid syntax
ruby/prism@8e3aad9e27
1 parent 49ddbbf commit 87cc2fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/prism/translation/parser/rubocop.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ module Translation
1111
class Parser
1212
# This is the special version numbers that should be used in RuboCop
1313
# configuration files to trigger using prism.
14+
1415
# For Ruby 3.3
1516
VERSION_3_3 = 80_82_73_83_77.33
17+
1618
# For Ruby 3.4
1719
VERSION_3_4 = 80_82_73_83_77.34
1820

@@ -24,7 +26,7 @@ def parser_class(ruby_version)
2426
if ruby_version == Prism::Translation::Parser::VERSION_3_3
2527
require "prism/translation/parser33"
2628
Prism::Translation::Parser33
27-
if ruby_version == Prism::Translation::Parser::VERSION_3_4
29+
elsif ruby_version == Prism::Translation::Parser::VERSION_3_4
2830
require "prism/translation/parser34"
2931
Prism::Translation::Parser34
3032
else

0 commit comments

Comments
 (0)