cosmetic: linting

This commit is contained in:
Matthias Radestock committed 2015-03-27 00:43:26 +00:00
1 parent 2d83fcc398
commit e3ef5433cf
13 files changed
+48 -53

No files matched your search

+3 -4
View File
@@ -430,12 +430,11 @@ func (nd *NaClDecryptor) decrypt(buf []byte) ([]byte, error) {
}
SetNonceLow15Bits(nonce, offsetNoFlags)
result, success := secretbox.Open(nil, buf[2:], nonce, nd.conn.SessionKey)
if success {
usedOffsets.Add(offsetNoFlagsInt)
return result, nil
} else {
if !success {
return nil, fmt.Errorf("Unable to decrypt UDP packet")
}
usedOffsets.Add(offsetNoFlagsInt)
return result, nil
}
// TCP Senders