Skip to content

Commit

Permalink
[rubygems/rubygems] Fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Carsten Wirth <carsten.wirth@homeday.de>

rubygems/rubygems@c7c5ca68db
  • Loading branch information
deivid-rodriguez authored and hsbt committed Jun 4, 2020
1 parent 1feffe1 commit c91915c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/injector.rb
Expand Up @@ -183,7 +183,7 @@ def remove_gems_from_gemfile(gems, gemfile_path)
# remove lines which match the regex
new_gemfile = IO.readlines(gemfile_path).reject {|line| line.match(patterns) }

# remove lone \n and append them with other strings
# remove line \n and append them with other strings
new_gemfile.each_with_index do |_line, index|
if new_gemfile[index + 1] == "\n"
new_gemfile[index] += new_gemfile[index + 1]
Expand Down

0 comments on commit c91915c

Please sign in to comment.