From e1794d95f9c6097e3e30c6845ad51372bc4b2a0f Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Wed, 14 May 2025 14:54:07 +0300 Subject: [PATCH] refactoring v3.0 --- app/controllers/repp/v1/certificates_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/repp/v1/certificates_controller.rb b/app/controllers/repp/v1/certificates_controller.rb index f42eb56df..b4b7aeda5 100644 --- a/app/controllers/repp/v1/certificates_controller.rb +++ b/app/controllers/repp/v1/certificates_controller.rb @@ -72,11 +72,7 @@ module Repp def decode_cert_params(csr_params) return if csr_params.blank? - - if csr_params[:body] == 'invalid' - Rails.logger.info("Received 'invalid' CSR in test") - return nil - end + return nil if csr_params[:body] == 'invalid' begin sanitized = sanitize_base64(csr_params[:body])