use NonEmpty for dirHashes
This avoids 4 uses of head.
This commit is contained in:
parent
43f31121a5
commit
10216b44d2
8 changed files with 34 additions and 22 deletions
6
Test.hs
6
Test.hs
|
@ -1940,9 +1940,9 @@ test_gpg_crypto = do
|
|||
checkFile mvariant filename =
|
||||
Utility.Gpg.checkEncryptionFile gpgcmd (Just environ) filename $
|
||||
if mvariant == Just Types.Crypto.PubKey then ks else Nothing
|
||||
serializeKeys cipher = map fromRawFilePath .
|
||||
Annex.Locations.keyPaths .
|
||||
Crypto.encryptKey Types.Crypto.HmacSha1 cipher
|
||||
serializeKeys cipher = map fromRawFilePath . NE.toList
|
||||
. Annex.Locations.keyPaths
|
||||
. Crypto.encryptKey Types.Crypto.HmacSha1 cipher
|
||||
#else
|
||||
test_gpg_crypto = putStrLn "gpg testing not implemented on Windows"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue