From c5910fd179d374f644ab3c843b243a51a7df9b24 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 19 Apr 2015 00:38:29 -0400 Subject: removed all uses of undefined from code base It's a code smell, can lead to hard to diagnose error messages. --- Crypto.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Crypto.hs') diff --git a/Crypto.hs b/Crypto.hs index c2076f461..4e3741715 100644 --- a/Crypto.hs +++ b/Crypto.hs @@ -93,7 +93,7 @@ genSharedCipher highQuality = {- Updates an existing Cipher, re-encrypting it to add or remove keyids, - depending on whether the first component is True or False. -} updateEncryptedCipher :: [(Bool, String)] -> StorableCipher -> IO StorableCipher -updateEncryptedCipher _ SharedCipher{} = undefined +updateEncryptedCipher _ SharedCipher{} = error "Cannot update shared cipher" updateEncryptedCipher [] encipher = return encipher updateEncryptedCipher newkeys encipher@(EncryptedCipher _ variant (KeyIds ks)) = do dropKeys <- listKeyIds [ k | (False, k) <- newkeys ] -- cgit v1.2.3