lib/zold/remotes.rb in zold-0.23.9 vs lib/zold/remotes.rb in zold-0.23.10
- old
+ new
@@ -187,11 +187,10 @@
def remove(host, port = PORT)
assert_host_info(host, port)
modify do |list|
list.reject { |r| r[:host] == host.downcase && r[:port] == port }
end
- unerror(host, port)
end
# Go through the list of remotes and call a provided block for each
# of them. See how it's used, for example, in fetch.rb.
def iterate(log, farm: Farm::Empty.new)
@@ -228,10 +227,9 @@
if_present(host, port) { |r| r[:errors] += 1 }
end
def unerror(host, port = PORT)
assert_host_info(host, port)
-
if_present(host, port) do |remote|
remote[:errors] -= 1 if (remote[:errors]).positive?
end
end