Skip to content

Commit

Permalink
Remove helper code for ruby < 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Feb 17, 2024
1 parent d98d705 commit c1ad81f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fastlane_core/lib/fastlane_core/ui/help_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ def template(name)
# fastlane only customizes the global command help
return super unless name == :help

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6')
ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), nil, '-')
else
ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), trim_mode: '-')
end
ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), trim_mode: '-')
end
end
end

0 comments on commit c1ad81f

Please sign in to comment.