coral-pi-rest-server
coral-pi-rest-server copied to clipboard
Use guard clauses
Use if flask.request.method != "POST" or not flask.request.files.get("image"):
, do the negative. This saves indentation. Same for if not predictions
https://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html