code format

This commit is contained in:
Evgeniy Kulikov 2020-01-30 16:38:52 +03:00
parent 53af48372f
commit 80fde665ca
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

View file

@ -68,10 +68,10 @@ func (m Object) Verify() error {
var (
err error
checksum []byte
pubkey []byte
pubkey []byte
)
ind, ih := m.LastHeader(HeaderType(IntegrityHdr))
if ih == nil || ind != len(m.Headers) - 1{
if ih == nil || ind != len(m.Headers)-1 {
return ErrHeaderNotFound
}
integrity := ih.Value.(*Header_Integrity).Integrity