mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 13:24:33 +08:00
no need to double strip this line
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user