Remove unnecessary Pathname check.

This commit is contained in:
Markus Reiter 2018-07-05 11:53:04 +02:00
parent 15ac935ed6
commit 5e3bc85527

View File

@ -118,7 +118,7 @@ class Resource
if block_given? if block_given?
yield ResourceStageContext.new(self, staging) yield ResourceStageContext.new(self, staging)
elsif target elsif target
target = Pathname.new(target) unless target.is_a? Pathname target = Pathname(target)
target.install Pathname.pwd.children target.install Pathname.pwd.children
end end
end end