mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-28 04:46:43 -04:00
Remove redundant methods
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ func get(c *net.UnixConn) (*Creds, error) {
|
||||
return nil, 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