From af2ee063abea8235a8cbd1448533e4f4fbc0d0af Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:19:15 +0000 Subject: Prefer single-quotes when you don't need interpolation. So "foo" is less good than 'foo'. --- lib/custodian/alerts/graphite.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian/alerts/graphite.rb') diff --git a/lib/custodian/alerts/graphite.rb b/lib/custodian/alerts/graphite.rb index 778b36b..c98f6bf 100644 --- a/lib/custodian/alerts/graphite.rb +++ b/lib/custodian/alerts/graphite.rb @@ -52,7 +52,7 @@ module Custodian # # hostname + test-type # - host = @test.target.gsub(/[\/\\.]/, "_") + host = @test.target.gsub(/[\/\\.]/, '_') test = @test.get_type # @@ -69,7 +69,7 @@ module Custodian end - register_alert_type "graphite" + register_alert_type 'graphite' end -- cgit v1.2.1