mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
no need to double strip this line
This commit is contained in:
parent
4c6eeaac15
commit
d7b0f0069c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue