You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/30 13:27:45 UTC

[whimsy] branch master updated: Check for nil rather than false for boolean cache

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 <se...@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'