Do not call File.expand_path() with empty strings
This commit is contained in:
parent
27ad15d040
commit
59de13be43
|
@ -13,7 +13,7 @@ class OptPath < OptBase
|
|||
end
|
||||
|
||||
def normalize(value)
|
||||
value.nil? ? value : File.expand_path(value)
|
||||
value.nil? || value.to_s.empty? ? value : File.expand_path(value)
|
||||
end
|
||||
|
||||
def validate_on_assignment?
|
||||
|
|
Loading…
Reference in New Issue