style: statement ordering

Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
This commit is contained in:
Wojciech Nawrocki 2021-07-30 10:30:37 -07:00 committed by Sebastian Ullrich
parent 0b6d51d60b
commit 5f021baa95

View file

@ -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