From 9671d795d091e30e926b8c1b9b16d2358fdc0e2c Mon Sep 17 00:00:00 2001 From: Simon Tharby Date: Thu, 22 Aug 2024 16:29:56 +0100 Subject: [PATCH] [TAN-2469] Don't use string for class name --- .../analysis/app/lib/analysis/summarization_method/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/engines/commercial/analysis/app/lib/analysis/summarization_method/base.rb b/back/engines/commercial/analysis/app/lib/analysis/summarization_method/base.rb index 6dbb57f9ed9d..56012d503ab4 100644 --- a/back/engines/commercial/analysis/app/lib/analysis/summarization_method/base.rb +++ b/back/engines/commercial/analysis/app/lib/analysis/summarization_method/base.rb @@ -47,7 +47,7 @@ def execute(plan) task.set_succeeded! rescue SummarizationFailedError, Faraday::BadRequestError => e extra = {} - if e.instance_of?('Faraday::BadRequestError') + if e.instance_of?(Faraday::BadRequestError) extra[:response] = e&.response extra[:response_headers] = e&.response&.headers extra[:response_body] = e&.response&.body