style: statement ordering
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
This commit is contained in:
parent
0b6d51d60b
commit
5f021baa95
1 changed files with 2 additions and 2 deletions
|
|
@ -76,8 +76,8 @@ def store (st : RpcSessionState) (typeName : Name) (obj : NonScalar) : Lsp.RpcRe
|
|||
(ref, st')
|
||||
|
||||
def release (st : RpcSessionState) (ref : Lsp.RpcRef) : Bool × RpcSessionState :=
|
||||
let st' := { st with aliveRefs := st.aliveRefs.erase ref }
|
||||
(st.aliveRefs.contains ref, st')
|
||||
let released := st.aliveRefs.contains ref
|
||||
(released, { st with aliveRefs := st.aliveRefs.erase ref })
|
||||
|
||||
end RpcSessionState
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue