lib/prometheus/client/registry.rb in prometheus-client-0.6.0 vs lib/prometheus/client/registry.rb in prometheus-client-0.7.0.pre.rc.1
- old
+ new
@@ -22,12 +22,11 @@
name = metric.name
@mutex.synchronize do
if exist?(name.to_sym)
raise AlreadyRegisteredError, "#{name} has already been registered"
- else
- @metrics[name.to_sym] = metric
end
+ @metrics[name.to_sym] = metric
end
metric
end