From bfd4aa548a839c7a55b6a854db7512475da0bfb2 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 1 Jun 2021 12:52:22 +0200 Subject: [PATCH] M #-: Fix linting error in 2.0.0 (cherry picked from commit 31e38f6d4bfcd97b59ad74872a270ab3317080c9) --- src/im_mad/remotes/lib/numa_common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/im_mad/remotes/lib/numa_common.rb b/src/im_mad/remotes/lib/numa_common.rb index 99fa556afd..8de898c834 100644 --- a/src/im_mad/remotes/lib/numa_common.rb +++ b/src/im_mad/remotes/lib/numa_common.rb @@ -134,7 +134,7 @@ module NUMA distance_h = {} distance_a.each_with_index {|d, i| distance_h[d.to_i] = i } - distance_h = distance_h.sort.to_h + distance_h = Hash[distance_h.sort] closer = '' distance_h.each {|_, v| closer << v.to_s << ' ' }