From 799fe6b7588b43b3f9d6ace39e0c8e523104d942 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Mon, 20 Jul 2020 14:39:34 +0100 Subject: [PATCH] Fix Naming/MemoizedInstanceVariableName --- lib/govuk_app_config/govuk_statsd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/govuk_app_config/govuk_statsd.rb b/lib/govuk_app_config/govuk_statsd.rb index 4e43f863..deabe748 100644 --- a/lib/govuk_app_config/govuk_statsd.rb +++ b/lib/govuk_app_config/govuk_statsd.rb @@ -7,7 +7,7 @@ module GovukStatsd :gauge, :set, :batch def self.client - @statsd_client ||= begin + @client ||= begin statsd_client = ::Statsd.new("localhost") statsd_client.namespace = ENV["GOVUK_STATSD_PREFIX"].to_s statsd_client