mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-09-05 16:47:25 -04:00
Remove redundant methods
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ func get(c *net.UnixConn) (*Creds, error) {
|
||||
return nil, err
|
||||
}
|
||||
return &Creds{
|
||||
pid: creds.Getpid(),
|
||||
uid: strconv.FormatUint(uint64(creds.Geteuid()), 10),
|
||||
PID: creds.Getpid(),
|
||||
UID: strconv.FormatUint(uint64(creds.Geteuid()), 10),
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user