inreplace: fix map

This commit is contained in:
Sean Molenaar 2022-08-08 14:01:44 +02:00 committed by GitHub
parent 040d93a006
commit 12d31853ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ module Utils
contents.gsub!(old, new)
end
raise Utils::Inreplace::Error, [path => contents.errors] unless contents.errors.empty?
raise Utils::Inreplace::Error, path => contents.errors unless contents.errors.empty?
Pathname(path).atomic_write(contents.inreplace_string) unless read_only_run
contents.inreplace_string