Skip to content

A platform for community discussion. Free, open, simple.

no need to double strip this line

Samd7b0f0069cda
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