mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-31 06:16:38 -04:00
Remove redundant methods
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user