From 45ada824882a9f1647790018db6fe4ae76217ce3 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Sun, 3 Jun 2018 15:06:17 +0300 Subject: rubycop fixes --- lib/oxidized/node/stats.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/node/stats.rb b/lib/oxidized/node/stats.rb index c20a91a..0778d6d 100644 --- a/lib/oxidized/node/stats.rb +++ b/lib/oxidized/node/stats.rb @@ -23,7 +23,7 @@ module Oxidized status ? @stats[status] : @stats end - def get_counter counter=nil + def get_counter counter = nil counter ? @stats[:counter][counter] : @stats[:counter] end @@ -32,7 +32,7 @@ module Oxidized end def failures - @stats[:counter].reduce(0) { |m,h| h[0] == :success ? m : m+h[1] } + @stats[:counter].reduce(0) { |m, h| h[0] == :success ? m : m + h[1] } end private -- cgit v1.2.1