forked from TrueCloudLab/frostfs-api-go
code format
This commit is contained in:
parent
53af48372f
commit
80fde665ca
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@ func (m Object) Verify() error {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
checksum []byte
|
checksum []byte
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue