Skip to content

Commit df92b6f

Browse files
committed
Fix early panic
1 parent 319debf commit df92b6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

result.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,5 +487,9 @@ func (r *Result) close() error {
487487
return nil
488488
}
489489

490-
return conn.Close()
490+
if conn != nil {
491+
return conn.Close()
492+
}
493+
494+
return nil
491495
}

0 commit comments

Comments
 (0)