Skip to content
Snippets Groups Projects
Unverified Commit d15edf73 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

extend/string: use unless to fix style.

parent 11f322b6
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ module StringInreplaceExtension
def remove_make_var!(flags)
Array(flags).each do |flag|
# Also remove trailing \n, if present.
if !gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "", false)
unless gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "", false)
errors << "expected to remove #{flag.inspect}"
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment