Skip to content

Commit fa8352e

Browse files
committed
Style/RedundantCondition
1 parent 770f115 commit fa8352e

File tree

1 file changed

+2
-0
lines changed
  • lib/puppet/provider/package

1 file changed

+2
-0
lines changed

lib/puppet/provider/package/apt.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,13 @@ def install
157157
cmd += install_options if @resource[:install_options]
158158
cmd << :install
159159

160+
# rubocop:disable Style/RedundantCondition
160161
if source
161162
cmd << source
162163
else
163164
cmd << str
164165
end
166+
# rubocop:enable Style/RedundantCondition
165167

166168
self.unhold if self.properties[:mark] == :hold
167169
begin

0 commit comments

Comments
 (0)