From 47da76576e1e509466fc55aec9bdcbf01c154aa5 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 21 Mar 2013 17:22:14 +0100 Subject: [PATCH] redis-trib: fix conditional otherwise always true. --- src/redis-trib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index 4c6c2c9b1..b18d7e1b2 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -299,7 +299,7 @@ class RedisTrib end } open_slots.uniq! - if open_slots.length + if open_slots.length > 0 puts "[WARNING] The following slots are open: #{open_slots.join(",")}" end if @fix