Proto: remove voting proposal cleanup when there is none.

This commit is contained in:
Benjamin Canou 2017-02-15 13:45:31 +01:00 committed by Grégoire Henry
parent a7c8975ec6
commit 8f618a0f94

View File

@ -55,7 +55,6 @@ let start_new_voting_cycle ctxt =
match select_winning_proposal proposals with match select_winning_proposal proposals with
| None -> | None ->
Vote.freeze_listings ctxt >>=? fun ctxt -> Vote.freeze_listings ctxt >>=? fun ctxt ->
Vote.clear_current_proposal ctxt >>=? fun ctxt ->
return ctxt return ctxt
| Some proposal -> | Some proposal ->
Vote.set_current_proposal ctxt proposal >>=? fun ctxt -> Vote.set_current_proposal ctxt proposal >>=? fun ctxt ->