Fix linter errors

This commit is contained in:
Daniel
2022-09-29 14:31:00 +02:00
parent b552e3f7a5
commit fd83534698
9 changed files with 13 additions and 18 deletions

View File

@@ -116,7 +116,7 @@ func findSocketFromPid(pid int, socketName string) bool {
return false
}
// readDirNames only reads the directory names. Using ioutil.ReadDir() would call `lstat` on every
// readDirNames only reads the directory names. Using os.ReadDir() would call `lstat` on every
// resulting directory name, which we don't need. This function will be called a lot, so we should
// refrain from unnecessary work.
func readDirNames(dir string) (names []string) {