[Bps-public-commit] App-Changeloggr branch, master, updated. 40f077c0c23c36563f47bc35b598769b8611d578

sartak at bestpractical.com sartak at bestpractical.com
Thu Mar 26 17:58:58 EDT 2009


The branch, master has been updated
       via  40f077c0c23c36563f47bc35b598769b8611d578 (commit)
      from  80786370f6e90738fc8ed9f9583e537b92cbff3b (commit)

Summary of changes:
 lib/App/Changeloggr/Model/ChangesCollection.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 40f077c0c23c36563f47bc35b598769b8611d578
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Mar 26 17:58:51 2009 -0400

    Return just the text in scalar context

diff --git a/lib/App/Changeloggr/Model/ChangesCollection.pm b/lib/App/Changeloggr/Model/ChangesCollection.pm
index 89a0dcd..5c3ec21 100644
--- a/lib/App/Changeloggr/Model/ChangesCollection.pm
+++ b/lib/App/Changeloggr/Model/ChangesCollection.pm
@@ -27,7 +27,7 @@ sub create_from_text {
         ++$count;
     }
 
-    return ($count, $text;
+    return wantarray ? ($count, $text) : $text;
 }
 
 1;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list