Remove unnecessary Pathname check.
This commit is contained in:
parent
15ac935ed6
commit
5e3bc85527
@ -118,7 +118,7 @@ class Resource
|
||||
if block_given?
|
||||
yield ResourceStageContext.new(self, staging)
|
||||
elsif target
|
||||
target = Pathname.new(target) unless target.is_a? Pathname
|
||||
target = Pathname(target)
|
||||
target.install Pathname.pwd.children
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user