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