aboutsummaryrefslogtreecommitdiff
path: root/gogs.go
diff options
context:
space:
mode:
Diffstat (limited to 'gogs.go')
-rw-r--r--gogs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gogs.go b/gogs.go
index 04db72a6..6865e1f2 100644
--- a/gogs.go
+++ b/gogs.go
@@ -27,12 +27,12 @@ func init() {
}
func checkRunUser() bool {
- user, err := user.Current()
+ u, err := user.Current()
if err != nil {
// TODO: log
return false
}
- return user.Username == base.Cfg.MustValue("", "RUN_USER")
+ return u.Username == base.Cfg.MustValue("", "RUN_USER")
}
func main() {