summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)