You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by el...@apache.org on 2018/01/24 19:38:56 UTC

[2/2] hbase git commit: HBASE-19770 ADDENDUM Replace `if not` with `unless`

HBASE-19770 ADDENDUM Replace `if not` with `unless`

Signed-off-by: Mike Drob <md...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8b2b59fd
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8b2b59fd
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8b2b59fd

Branch: refs/heads/master
Commit: 8b2b59fdeefba57ee49d225b26fcd37f5cfa55b2
Parents: 548426e
Author: Josh Elser <el...@apache.org>
Authored: Thu Jan 18 11:34:29 2018 -0500
Committer: Josh Elser <jo...@gmail.com>
Committed: Wed Jan 24 14:38:28 2018 -0500

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8b2b59fd/hbase-shell/src/main/ruby/shell.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell.rb b/hbase-shell/src/main/ruby/shell.rb
index 4472021..4a74646 100644
--- a/hbase-shell/src/main/ruby/shell.rb
+++ b/hbase-shell/src/main/ruby/shell.rb
@@ -83,7 +83,7 @@ module Shell
       self.interactive = interactive
       self.return_values = return_values
       # If we're in non-interactive mode, force return_values
-      self.return_values = true if not self.interactive
+      self.return_values = true unless self.interactive
     end
 
     # Returns Admin class from admin.rb