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

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