From 1e7401265676e79afbffb0396a0605726b93509e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 25 Mar 2023 12:16:52 +0530 Subject: fix: remove NoKeysProvided error We're making this invariant impossible in the code paths that hit it --- .../src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt | 3 --- 1 file changed, 3 deletions(-) (limited to 'crypto-common') diff --git a/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt index 81bdf95f..cb8980bd 100644 --- a/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt @@ -37,8 +37,5 @@ public sealed class CryptoHandlerException(message: String? = null, cause: Throw /** The passphrase provided for decryption was incorrect. */ public class IncorrectPassphraseException(cause: Throwable) : CryptoHandlerException(null, cause) -/** No keys were provided for encryption. */ -public class NoKeysProvided(message: String?) : CryptoHandlerException(message, null) - /** An unexpected error that cannot be mapped to a known type. */ public class UnknownError(cause: Throwable) : CryptoHandlerException(null, cause) -- cgit v1.2.3