From 14ae784468a37ab190154033f15867fce4467a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=9F=E4=BA=BA?= Date: Fri, 31 Mar 2017 17:48:20 +0800 Subject: [PATCH] style: consistent code style --- shadowaead/cipher.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shadowaead/cipher.go b/shadowaead/cipher.go index 952d5b27..19410df9 100644 --- a/shadowaead/cipher.go +++ b/shadowaead/cipher.go @@ -46,8 +46,7 @@ func (a *metaCipher) SaltSize() int { func (a *metaCipher) Encrypter(salt []byte) (cipher.AEAD, error) { subkey := make([]byte, a.KeySize()) hkdfSHA1(a.psk, salt, []byte("ss-subkey"), subkey) - aead, err := a.makeAEAD(subkey) - return aead, err + return a.makeAEAD(subkey) } func (a *metaCipher) Decrypter(salt []byte) (cipher.AEAD, error) { subkey := make([]byte, a.KeySize())