Make add_candidate() function private as it should be called from create_vote()
IDEA: add_candidate() function should only be used during creation of a new vote, so it would be great to make in internal, and call from within create_vote().
Or another approach could be taken. Incorporate logic of add_candidates into create_vote().
Make
add_candidate()
function private as it should be called fromcreate_vote()
IDEA:
add_candidate()
function should only be used during creation of a new vote, so it would be great to make in internal, and call from withincreate_vote()
.Or another approach could be taken. Incorporate logic of
add_candidates
intocreate_vote()
.