Streamline can_run access control method
authorJeremy Stanley <fungi@yuggoth.org>
Wed, 30 Sep 2020 18:07:46 +0000 (18:07 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Wed, 30 Sep 2020 18:07:46 +0000 (18:07 +0000)
commitc7ee3d6c896f1534d8da46e973700a26b9feb706
tree3f99394d67cfcafd32e33283b8d3d7369ea09c8c
parent86687f01f1ee31acb004ec91ba6d90059b89d93e
Streamline can_run access control method

Minor rework of can_run() to replace the chain of elifs with simple
short-circuiting conditions each with its own return() so that it's
clearer this operates in a "first match" model.
mudpy/misc.py