summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reference/providers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/reference/providers.rb')
-rw-r--r--lib/puppet/reference/providers.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/reference/providers.rb b/lib/puppet/reference/providers.rb
index cc47876d6..b19549350 100644
--- a/lib/puppet/reference/providers.rb
+++ b/lib/puppet/reference/providers.rb
@@ -9,9 +9,7 @@ providers = Puppet::Util::Reference.newreference :providers, :title => "Provider
types.sort! { |a,b| a.name.to_s <=> b.name.to_s }
command_line = Puppet::Util::CommandLine.new
- unless command_line.args.empty?
- types.reject! { |type| ! command_line.args.include?(type.name.to_s) }
- end
+ types.reject! { |type| ! command_line.args.include?(type.name.to_s) } unless command_line.args.empty?
ret = "Details about this host:\n\n"