inreplace: fix typecheck error
This commit is contained in:
parent
2ac5cffd0d
commit
ad44a83b72
@ -42,7 +42,7 @@ class StringInreplaceExtension
|
||||
# value with "new_value", or removes the definition entirely.
|
||||
#
|
||||
# @api public
|
||||
sig { params(flag: String, new_value: String).void }
|
||||
sig { params(flag: String, new_value: T.any(String, Pathname)).void }
|
||||
def change_make_var!(flag, new_value)
|
||||
return if gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=[ \t]*((?:.*\\\n)*.*)$/, "#{flag}=#{new_value}", false)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user