Skip to content

Commit 43c572e

Browse files
committed
remove useless error in Free() method
1 parent 8a983de commit 43c572e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chdb-purego/chdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ func (c *result) Error() error {
5656
}
5757

5858
// Free implements ChdbResult.
59-
func (c *result) Free() error {
59+
func (c *result) Free() {
6060
if c.localResv2 != nil {
6161
freeResultV2(c.localResv2)
6262
c.localResv2 = nil
6363
}
64-
return nil
64+
6565
}
6666

6767
// Len implements ChdbResult.

chdb-purego/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type ChdbResult interface {
4747
// If the query had any error during execution, here you can retrieve the cause.
4848
Error() error
4949
// Free the query result and all the allocated memory
50-
Free() error
50+
Free()
5151
}
5252

5353
type ChdbConn interface {

0 commit comments

Comments
 (0)