Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kmrmt committed Sep 27, 2023
1 parent 0755e0d commit 4199006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/algorithm/ngt/ngt.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ func (n *ngt) Remove(id uint) error {
ret := func(id uint) int {
return 1
}(id)
n.unlock(true)
if ret == ErrorCode {

Check failure on line 684 in internal/core/algorithm/ngt/ngt.go

View workflow job for this annotation

GitHub Actions / grpc-sequential

invalid operation: ret == ErrorCode (mismatched types int and _Ctype__Bool)

Check failure on line 684 in internal/core/algorithm/ngt/ngt.go

View workflow job for this annotation

GitHub Actions / grpc-stream

invalid operation: ret == ErrorCode (mismatched types int and _Ctype__Bool)
return errors.Errorf("remove error")
}
n.unlock(true)

n.cnt.Add(^uint64(0))

Expand Down

0 comments on commit 4199006

Please sign in to comment.