Skip to content

Commit

Permalink
Golangci lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvivien committed Nov 9, 2024
1 parent f257fd9 commit 6ca52eb
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions exec/proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,16 +442,4 @@ func lookupGroupID(grpid string) (int, error) {
}

return 0, err
}

func getDefaultUserIDs() (int, int, error) {
usr, err := user.Current()
if err != nil {
return 0, 0, err
}

uid, _ := strconv.Atoi(usr.Uid)
gid, _ := strconv.Atoi(usr.Gid)

return uid, gid, nil
}
}

0 comments on commit 6ca52eb

Please sign in to comment.