From 8a34dc7ea4168e4a1a11560f6e38cdd2e39aa47c Mon Sep 17 00:00:00 2001 From: Eric Putnam Date: Fri, 9 Feb 2018 15:22:51 -0800 Subject: [PATCH] rubocop sucks --- lib/puppet-strings/markdown/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet-strings/markdown/base.rb b/lib/puppet-strings/markdown/base.rb index 1b16e54..936e34b 100644 --- a/lib/puppet-strings/markdown/base.rb +++ b/lib/puppet-strings/markdown/base.rb @@ -110,7 +110,7 @@ module PuppetStrings::Markdown def options_for_param(parameter_name) opts_for_p = options.select { |o| o[:parent] == parameter_name } unless options.nil? - opts_for_p unless opts_for_p.nil? || opts_for_p.length == 0 + opts_for_p unless opts_for_p.nil? || opts_for_p.length.zero? end # @return [Array] any defaults found for the component