mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix: static check
This commit is contained in:
parent
03266bfacb
commit
b2d27b9a46
|
@ -257,7 +257,7 @@ func resolveProcessNameByProcSearch(inode, uid int) (string, error) {
|
|||
continue
|
||||
}
|
||||
|
||||
if bytes.Compare(buffer[:n], socket) == 0 {
|
||||
if bytes.Equal(buffer[:n], socket) {
|
||||
cmdline, err := ioutil.ReadFile(path.Join(processPath, "cmdline"))
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Reference in New Issue
Block a user