Fix some linter errors

This commit is contained in:
Daniel
2021-06-03 23:30:27 +02:00
parent 2127f1b210
commit 417d7e4743
6 changed files with 66 additions and 65 deletions

View File

@@ -14,7 +14,6 @@ import (
)
func checkAndCreateInstanceLock(path, name string) (pid int32, err error) {
lockFilePath := filepath.Join(dataRoot.Path, path, fmt.Sprintf("%s-lock.pid", name))
// read current pid file
@@ -86,7 +85,7 @@ func createInstanceLock(lockFilePath string) error {
}
// create lock file
err = ioutil.WriteFile(lockFilePath, []byte(fmt.Sprintf("%d", os.Getpid())), 0666)
err = ioutil.WriteFile(lockFilePath, []byte(fmt.Sprintf("%d", os.Getpid())), 0666) //nolint:gosec
if err != nil {
return err
}