whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Check for nil rather than false for boolean cache
Date Tue, 30 Jun 2020 13:27:45 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new eddb2f2  Check for nil rather than false for boolean cache
eddb2f2 is described below

commit eddb2f2f7244b870aa63834593b95f12ac9dc3ab
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Jun 30 14:27:36 2020 +0100

    Check for nil rather than false for boolean cache
---
 lib/whimsy/asf/svn.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 00ac230..dacac64 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -840,7 +840,7 @@ module ASF
 
     # Does this host's installation of SVN support --password-from-stdin?
     def self.passwordStdinOK?()
-      return @svnHasPasswordFromStdin if @svnHasPasswordFromStdin
+      return @svnHasPasswordFromStdin unless @svnHasPasswordFromStdin.nil?
         out,err = self.svn('help','cat', {args: '-v'})
         if out
           @svnHasPasswordFromStdin = out.include? '--password-from-stdin'


Mime
View raw message