From 3883a381b6ea8354a7f830c3ac508ecba7ae9de2 Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Wed, 13 Apr 2011 18:46:29 +0200
Subject: [PATCH] use map! instead of reassigning

---
 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 3ebcf6b6..5ae0370a 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -92,7 +92,7 @@ class ClusterNode
         # As we want to aggregate adiacent slots we convert all the
         # slot integers into ranges (with just one element)
         # So we have something like [1..1,2..2, ... and so forth.
-        slots = slots.map{|x| x..x}
+        slots.map!{|x| x..x}
 
         # Finally we group ranges with adiacent elements.
         slots = slots.reduce([]) {|a,b|