summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 20:56:37 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 20:56:37 -0600
commitb6fddfc9bea6b747be617283eb1e7c8d3725aaa1 (patch)
treeab44d497c099b087772dba7f6c97135ef074172c /src
parent3390e7d50e49a7e4478a057608525fef8fc1b1db (diff)
minor tidy up
Diffstat (limited to 'src')
-rw-r--r--src/nshd/hackers_git/hackers_watch.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/hackers_watch.go b/src/nshd/hackers_git/hackers_watch.go
index 7a38c7f..2d09f7c 100644
--- a/src/nshd/hackers_git/hackers_watch.go
+++ b/src/nshd/hackers_git/hackers_watch.go
@@ -90,8 +90,7 @@ func (o *Hackers) load_yaml_file(filename string) {
logger.Debug("hackers.git: -> User %d invalidated: %v", uid, err)
o.lock.Lock()
defer o.lock.Unlock()
- wd, found := o.in_uid2wd[uid]
- if found {
+ if wd, found := o.in_uid2wd[uid]; found {
o.unwatchHomedir(wd)
}
delete(o.users, uid)