Implement review suggestions

This commit is contained in:
Daniel
2021-06-07 11:20:39 +02:00
parent ce192c7243
commit 27d0f23f41
2 changed files with 3 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ func createInstanceLock(lockFilePath string) error {
}
// create lock file
// TODO: Investigate required permissions.
err = ioutil.WriteFile(lockFilePath, []byte(fmt.Sprintf("%d", os.Getpid())), 0666) //nolint:gosec
if err != nil {
return err