Skip to content

Commit 24045c2

Browse files
committed
Fix lints
1 parent dd50191 commit 24045c2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

check_fallocate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
package main
44

mdbx/mdbx.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func Version() string {
181181
//
182182
// Example output: " MDBX_DEBUG=0 ... MDBX_USE_FALLOCATE=1 ..."
183183
func BuildOptions() string {
184+
//nolint:gocritic // C variable access pattern
184185
return C.GoString(C.mdbx_build.options)
185186
}
186187

mdbx/txn.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ func (txn *Txn) renew() error {
442442
// null bytes in the name argument.
443443
//
444444
// See mdbx_dbi_open.
445+
//
445446
// Deprecated: use OpenDBISimple instead
446447
func (txn *Txn) OpenDBI(name string, flags uint, cmp, dcmp CmpFunc) (DBI, error) {
447448
cname := C.CString(name)
@@ -495,7 +496,8 @@ type Cmp func(k1, k2 []byte) int
495496
// returned in those cases. This is not a big deal for now because
496497
// applications are expected to handle any error encountered opening a
497498
// database.
498-
// Deprecated: openDBISimple instead because using comparators now is a deprecated
499+
//
500+
// Deprecated: use OpenDBISimple instead because using comparators is now deprecated
499501
func (txn *Txn) openDBI(cname *C.char, flags uint, cmp, dcmp *C.MDBX_cmp_func) (DBI, error) {
500502
var dbi C.MDBX_dbi
501503
ret := C.mdbx_dbi_open_ex(txn._txn, cname, C.MDBX_db_flags_t(flags), &dbi, cmp, dcmp)

0 commit comments

Comments
 (0)