From d7b0f0069cda2e2a4cf24d1e8fe1e1945894334d Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 23 Nov 2018 14:48:02 +1100 Subject: [PATCH] no need to double strip this line --- script/cache_critical_dns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/cache_critical_dns b/script/cache_critical_dns index 99684afc739..a3e893e41e8 100755 --- a/script/cache_critical_dns +++ b/script/cache_critical_dns @@ -30,7 +30,7 @@ def swap_address(hosts, name, ips) hosts.split("\n").each do |line| line.strip! if line[0] != '#' - _, hostname = line.strip.split(/\s+/) + _, hostname = line.split(/\s+/) next if hostname == name end new_file << line