From da8d8e0b23fb8585063a93d093e843c69cd3f07b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Sep 2015 23:23:01 -0600 Subject: tidy --- src/nshd/hackers_git/db_passwd.go | 3 +-- src/nshd/hackers_git/hackers.go | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/nshd/hackers_git/db_passwd.go b/src/nshd/hackers_git/db_passwd.go index 719ff3f..750e458 100644 --- a/src/nshd/hackers_git/db_passwd.go +++ b/src/nshd/hackers_git/db_passwd.go @@ -52,8 +52,7 @@ func (e *allPasswdEnumerator) GetNext() (*p.Passwd, error) { passwd.PwHash = "x" // only put actual hashes in the Shadow DB e.uids = e.uids[1:] return &passwd, nil - } - if len(e.uids) == 0 && !e.done { + } else if !e.done { e.done = true e.backend.lock.RUnlock() } diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go index 9e3976b..446351d 100644 --- a/src/nshd/hackers_git/hackers.go +++ b/src/nshd/hackers_git/hackers.go @@ -55,7 +55,6 @@ func (o *Hackers) Close() { logger.Info("Closing hackers.git session") o.lock.Lock() defer o.lock.Unlock() - o.close() } -- cgit v1.2.3-54-g00ecf