mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
Clean: use go 1.19 Appendf
This commit is contained in:
parent
6e058f8581
commit
bf079742cb
@ -166,7 +166,7 @@ func resolveProcessNameByProcSearch(inode, uid int32) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buffer := make([]byte, syscall.PathMax)
|
buffer := make([]byte, syscall.PathMax)
|
||||||
socket := []byte(fmt.Sprintf("socket:[%d]", inode))
|
socket := fmt.Appendf(nil, "socket:[%d]", inode)
|
||||||
|
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
if !f.IsDir() || !isPid(f.Name()) {
|
if !f.IsDir() || !isPid(f.Name()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user