Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Carsten Wirth <carsten.wirth@homeday.de>
  • Loading branch information
deivid-rodriguez and jethroo committed May 22, 2020
1 parent af1edf9 commit c7c5ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/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 c7c5ca6

Please sign in to comment.