Update sync.go

This commit is contained in:
rjl493456442 2024-05-21 15:06:30 +08:00 committed by GitHub
parent f2730d3781
commit 0882b353c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,9 +158,6 @@ type nodeOp struct {
} }
// valid checks whether the node operation is valid. // valid checks whether the node operation is valid.
//
// for node deletion, the node blob must be zero-length.
// for node update, the node blob must be non-zero-length.
func (op *nodeOp) valid() bool { func (op *nodeOp) valid() bool {
if op.del && len(op.blob) != 0 { if op.del && len(op.blob) != 0 {
return false return false