[Bps-public-commit] Shipwright branch, master, updated. 21a3489753cf385486f608ace7384b4930f3747d

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Sep 11 00:19:44 EDT 2009


The branch, master has been updated
       via  21a3489753cf385486f608ace7384b4930f3747d (commit)
      from  d5ae69986496700b908259d7cbf3ec6545560f16 (commit)

Summary of changes:
 share/bin/shipwright-builder |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit 21a3489753cf385486f608ace7384b4930f3747d
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Sep 11 12:19:34 2009 +0800

    warning fix

diff --git a/share/bin/shipwright-builder b/share/bin/shipwright-builder
index f6249f2..53ab072 100755
--- a/share/bin/shipwright-builder
+++ b/share/bin/shipwright-builder
@@ -197,18 +197,16 @@ my ( $flags, $ktf, $branches );
 if ( -e catfile( 'shipwright', 'flags.yml' ) ) {
     $flags = ( YAML::Tiny->read( catfile( 'shipwright', 'flags.yml' ) ) )->[0];
 }
-else {
-    $flags = {};
-}
+
+$flags ||= {};
 
 if ( -e catfile( 'shipwright', 'known_test_failures.yml' ) ) {
     $ktf =
       ( YAML::Tiny->read( catfile( 'shipwright', 'known_test_failures.yml' ) ) )
       ->[0];
 }
-else {
-    $ktf = {};
-}
+
+$ktf ||= {};
 
 if ( -e catfile( 'shipwright', 'branches.yml' ) ) {
     $branches =

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



More information about the Bps-public-commit mailing list