From 79d24f2ba0394a4b9ee3ef5ee52f5f667b6ef467 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Thu, 24 Feb 2022 21:12:56 +0100 Subject: [PATCH] removed useless defer --- cursor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cursor.go b/cursor.go index ed680f9..3ed6b14 100644 --- a/cursor.go +++ b/cursor.go @@ -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) {