From 851e0315d0912d9b6c13f8c7b0c88aee80ae2d1b Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Mon, 20 Jul 2020 14:38:49 +0100 Subject: [PATCH] Fix Style/CaseEquality --- lib/govuk_app_config/govuk_logging.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/govuk_app_config/govuk_logging.rb b/lib/govuk_app_config/govuk_logging.rb index 00c55e24..9a32f886 100644 --- a/lib/govuk_app_config/govuk_logging.rb +++ b/lib/govuk_app_config/govuk_logging.rb @@ -51,7 +51,7 @@ def self.configure $real_stdout, # rubocop:disable Style/GlobalVars level: Rails.logger.level, formatter: proc { |_severity, _datetime, _progname, msg| - "#{String === msg ? msg : msg.inspect}\n" + "#{msg.is_a?(String) ? msg : msg.inspect}\n" }, ) Rails.application.config.logstasher.suppress_app_log = true