Skip to content

Commit

Permalink
Fix rubocop Style/EmptyElse
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Fisher <[email protected]>
  • Loading branch information
alexjfisher committed Sep 23, 2016
1 parent 2538e10 commit 6bbdc78
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions lib/puppet/provider/package/pear.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ def self.pearlist(hash)
pearhash = pearsplit(set, channel)
pearhash[:provider] = :pear
pearhash
else
nil
end
else
if pearhash = pearsplit(set, channel) # rubocop:disable Lint/AssignmentInCondition
pearhash[:provider] = :pear
pearhash
else
nil
end
end
end.reject { |p| p.nil? }
Expand Down
6 changes: 0 additions & 6 deletions lib/puppet/provider/package/pecl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,12 @@ def self.pecllist(hash)
if peclhash = peclsplit(set) # rubocop:disable Lint/AssignmentInCondition
peclhash[:provider] = :peclcmd
peclhash
else
nil
end
else
nil
end
else
if peclhash = peclsplit(set) # rubocop:disable Lint/AssignmentInCondition
peclhash[:provider] = :peclcmd
peclhash
else
nil
end
end
end.reject { |p| p.nil? }
Expand Down

0 comments on commit 6bbdc78

Please sign in to comment.