Skip to content

Commit c38caf9

Browse files
committed
Remove else clause
if the condition is false the result will be nil anyway so remove the else clause
1 parent 8313664 commit c38caf9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/puppet/type/oratab.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ module Puppet
5050
defaultto do
5151
if @resource.class.defaultprovider.ancestors.include?(Puppet::Provider::ParsedFile)
5252
@resource.class.defaultprovider.default_target
53-
else
54-
nil
5553
end
5654
end
5755
end

0 commit comments

Comments
 (0)