mirror of
https://github.com/safing/portmaster
synced 2025-09-10 15:08:22 +00:00
Clean up linter errors
This commit is contained in:
parent
35c7f4955b
commit
f75fc7d162
50 changed files with 402 additions and 334 deletions
|
@ -1,26 +1,26 @@
|
|||
package process
|
||||
|
||||
// IsUser returns whether the process is run by a normal user.
|
||||
func (m *Process) IsUser() bool {
|
||||
return m.UserID >= 1000
|
||||
func (p *Process) IsUser() bool {
|
||||
return p.UserID >= 1000
|
||||
}
|
||||
|
||||
// IsAdmin returns whether the process is run by an admin user.
|
||||
func (m *Process) IsAdmin() bool {
|
||||
return m.UserID >= 0
|
||||
func (p *Process) IsAdmin() bool {
|
||||
return p.UserID >= 0
|
||||
}
|
||||
|
||||
// IsSystem returns whether the process is run by the operating system.
|
||||
func (m *Process) IsSystem() bool {
|
||||
return m.UserID == 0
|
||||
func (p *Process) IsSystem() bool {
|
||||
return p.UserID == 0
|
||||
}
|
||||
|
||||
// IsKernel returns whether the process is the Kernel.
|
||||
func (m *Process) IsKernel() bool {
|
||||
return m.Pid == 0
|
||||
func (p *Process) IsKernel() bool {
|
||||
return p.Pid == 0
|
||||
}
|
||||
|
||||
// specialOSInit does special OS specific Process initialization.
|
||||
func (m *Process) specialOSInit() {
|
||||
func (p *Process) specialOSInit() {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue