incorporate comments

Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
Matthias Hanel
2022-01-25 14:53:03 -05:00
parent fa12d096cd
commit 274ec6db65

View File

@@ -2261,6 +2261,9 @@ func (s *Server) accountInfo(accName string) (*AccountInfo, error) {
}
}
collectRevocations := func(revocations map[string]int64) map[string]time.Time {
if len(revocations) == 0 {
return nil
}
rev := map[string]time.Time{}
for k, v := range a.usersRevoked {
rev[k] = time.Unix(v, 0)