diff options
author | Yigit Sever | 2021-04-13 15:36:57 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-13 15:40:03 +0300 |
commit | 8213d5715e52b3bff38f8ccfb5e0717a2becb075 (patch) | |
tree | d3997833f20613edf53c30fcf085691130a2312d /tests/route_tests.rs | |
parent | 3d5e2607c18f737258c8dcf31ab475729bc599a4 (diff) | |
download | gradecoin-8213d5715e52b3bff38f8ccfb5e0717a2becb075.tar.gz gradecoin-8213d5715e52b3bff38f8ccfb5e0717a2becb075.tar.bz2 gradecoin-8213d5715e52b3bff38f8ccfb5e0717a2becb075.zip |
Refactor authorized propose functions
They were getting spaghetti so;
new function: handlers::authorize_proposer(), handles the jwt stuff, NOT
async and _may_ cause trouble down the road but then again the stuff it
does used to be (repeated) in the functions so how bad can it be
If else chains were getting unwieldy;
https://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html
so now everything is returning early, might make verbose error handling
easier
Diffstat (limited to 'tests/route_tests.rs')
0 files changed, 0 insertions, 0 deletions