Commit 68afade
lushenle
Fix redundant rows.Close() calls in queryCode.tmpl
- Updated queryCode.tmpl to use defer for rows.Close()
- Ensured rows.Close() is called only once
- Improved resource management following Go best practices1 parent 6b2ed20 commit 68afade
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| |||
0 commit comments