Skip to content

Commit

Permalink
remove rescues
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Jul 31, 2024
1 parent 2948973 commit d909970
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/keygen/sso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ def encrypt(plaintext, secret_key:)
.join('.')

enc
rescue => e
Keygen.logger.error { "[sso.encrypt] Encrypt failed: err=#{e.message}" }

nil
end

def decrypt(ciphertext, secret_key:)
Expand All @@ -112,10 +108,6 @@ def decrypt(ciphertext, secret_key:)
.join('--')

crypt.decrypt_and_verify(enc)
rescue => e
Keygen.logger.warn { "[sso.decrypt] Decrypt failed: err=#{e.message}" }

nil
end

def derive_key(secret_key)
Expand Down

0 comments on commit d909970

Please sign in to comment.