Skip to content

Commit ea2c181

Browse files
committed
fix: Lint issues
1 parent 45e00cf commit ea2c181

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
)
1111

1212
func withEnvSet(key, value string, f func(key string)) {
13-
os.Setenv(key, value)
13+
_ = os.Setenv(key, value)
1414
f(key)
15-
os.Unsetenv(key)
15+
_ = os.Unsetenv(key)
1616
}
1717

1818
func testAllBoolVariable(t *testing.T, key string, defaultValue bool, f func() bool) {

pkg/dba/dba.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (dba *DBA) Run() error {
8383
if err != nil {
8484
return err
8585
}
86-
defer dba.db.Close()
86+
defer func() { _ = dba.db.Close() }()
8787

8888
if err = dba.db.Ping(); err != nil {
8989
return err

0 commit comments

Comments
 (0)