mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-11 02:13:49 +09:00
Readability improvements
This commit is contained in:
parent
9836caf2cb
commit
4fb34fcb7c
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
defer e.mx.Unlock()
|
||||
return e.state
|
||||
return e.state == entryStateActive
|
||||
}
|
||||
|
||||
func (e *entry) isClosing() bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue