removed useless defer

This commit is contained in:
Timon Ringwald 2022-02-24 21:12:56 +01:00
parent 573c398f76
commit 79d24f2ba0

View File

@ -14,7 +14,7 @@ func (c Cursor[T]) First() *T {
}
func (c Cursor[T]) Close() {
defer c.cancelFunc()
c.cancelFunc()
}
func (c Cursor[T]) Next() (*T, bool) {