Skip to content

Commit

Permalink
Fix rubocop Style/SymbolProc
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Fisher <[email protected]>
  • Loading branch information
alexjfisher committed Sep 24, 2016
1 parent 865401d commit 4f1fd3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/package/pear.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.pearlist(hash)
pearhash[:provider] = :pear
pearhash
end
end.reject { |p| p.nil? }
end.reject(&:nil?)

rescue Puppet::ExecutionFailure => detail
raise Puppet::Error, format('Could not list pears: %s', detail)
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/package/pecl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.pecllist(hash)
peclhash[:provider] = :peclcmd
peclhash
end
end.reject { |p| p.nil? }
end.reject(&:nil?)
rescue Puppet::ExecutionFailure => detail
raise Puppet::Error, format('Could not list pecls: %s', detail)
end
Expand Down

0 comments on commit 4f1fd3f

Please sign in to comment.