Remove redundant methods

This commit is contained in:
2025-04-05 15:17:24 -04:00
parent dcf2844318
commit d116525c2b
8 changed files with 16 additions and 29 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ func get(c *net.UnixConn) (*Creds, error) {
return nil, fmt.Errorf("unix.GetsockoptUcred: %w", err)
}
return &Creds{
pid: int(cred.Pid),
uid: strconv.FormatUint(uint64(cred.Uid), 10),
PID: int(cred.Pid),
UID: strconv.FormatUint(uint64(cred.Uid), 10),
}, nil
}