Use has_key? rather than accessing the value
This commit is contained in:
parent
020a505970
commit
4e4a5af731
@ -306,7 +306,7 @@ module HomebrewEnvExtension
|
||||
|
||||
def replace_in_cflags before, after
|
||||
CC_FLAG_VARS.each do |key|
|
||||
self[key] = self[key].sub before, after if self[key]
|
||||
self[key] = self[key].sub(before, after) if has_key?(key)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user