1
0

feat: upgrade golangci-lint to 1.45.2

This commit is contained in:
kolaente
2022-03-27 16:55:37 +02:00
parent 09c0d14444
commit 5cf263a86f
20 changed files with 77 additions and 59 deletions

View File

@ -186,7 +186,7 @@ func initSqliteEngine() (engine *xorm.Engine, err error) {
}
file, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0)
if err != nil {
return nil, fmt.Errorf("could not open database file [uid=%d, gid=%d]: %s", os.Getuid(), os.Getgid(), err)
return nil, fmt.Errorf("could not open database file [uid=%d, gid=%d]: %w", os.Getuid(), os.Getgid(), err)
}
_ = file.Close() // We directly close the file because we only want to check if it is writable. It will be reopened lazily later by xorm.