From f7165d66348886749f47019daaf836873c2c79c9 Mon Sep 17 00:00:00 2001 From: Ian Kronquist Date: Tue, 4 Aug 2015 15:34:13 -0700 Subject: [PATCH] (maint) Don't print extraneous "true". Suppress it by printing an empty string instead. --- lib/puppet/face/strings.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/puppet/face/strings.rb b/lib/puppet/face/strings.rb index 26953bb..01603aa 100644 --- a/lib/puppet/face/strings.rb +++ b/lib/puppet/face/strings.rb @@ -57,6 +57,12 @@ Puppet::Face.define(:strings, '0.0.1') do #class YARD::Logger; def progress(*args); end; end yardoc_actions.generate_documentation(*yard_args) + + # Puppet prints the return value of the action. The return value of this + # action is that of the yardoc_actions invocation, which is the boolean + # "true". This clutters the statistics yard prints, so instead return the + # empty string. Note an extra newline will also be printed. + "" end end