Readability improvements

This commit is contained in:
mcrakhman 2023-03-09 09:38:45 +01:00
parent 9836caf2cb
commit 4fb34fcb7c
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -37,10 +37,10 @@ func newEntry(id string, value Object, state entryState) *entry {
} }
} }
func (e *entry) getState() entryState { func (e *entry) isActive() bool {
e.mx.Lock() e.mx.Lock()
defer e.mx.Unlock() defer e.mx.Unlock()
return e.state return e.state == entryStateActive
} }
func (e *entry) isClosing() bool { func (e *entry) isClosing() bool {