Skip to content

Commit 7b2e5a0

Browse files
committed
Fixed RuboCop linter warning
1 parent 3903b9f commit 7b2e5a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/parser/functions/docker_plugin_enable_flags.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module Puppet::Parser::Functions
1212
flags << '--force' if opts['force_remove'] == true
1313
if opts['plugin_alias'] && opts['plugin_alias'].to_s != 'undef'
1414
flags << "'#{opts['plugin_alias']}'"
15-
else
16-
flags << "'#{opts['plugin_name']}'" if opts['plugin_name'] && opts['plugin_name'].to_s != 'undef'
15+
elsif opts['plugin_name'] && opts['plugin_name'].to_s != 'undef'
16+
flags << "'#{opts['plugin_name']}'"
1717
end
1818
flags.flatten.join(' ')
1919
end

0 commit comments

Comments
 (0)