Permalink
Browse files

Fix go vet issues

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
  • Loading branch information...
puiterwijk committed Jan 19, 2019
1 parent 391f50b commit 84d7a0f060e92c733af1cb97f9dcf118e8682281
Showing with 3 additions and 1 deletion.
  1. +2 −1 cmd/repohookrunner/security_linux.go
  2. +1 −0 cmd/repohookrunner/security_nonlinux.go
@@ -1,10 +1,11 @@
// +build linux

package main

import (
"syscall"
)

func dropToUser(user int) error {
return syscall.Setresuid(request.User, request.User, request.User)
return syscall.Setresuid(user, user, user)
}
@@ -1,4 +1,5 @@
// +build !linux

package main

import (

0 comments on commit 84d7a0f

Please sign in to comment.