uber-archive / cherami-server

Distributed, scalable, durable, and highly available message queue system. This project is deprecated and not maintained.
https://eng.uber.com/cherami/
MIT License
1.42k stars 102 forks source link

Simplify a few length checks. #353

Closed xiemaisi closed 5 years ago

xiemaisi commented 5 years ago

len is always non-negative, so len(...) <= 0 is equivalent to len(...) == 0.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.1%) to 66.594% when pulling 7757961e01b53f7a9d03d4cba3f86d58674191a9 on xiemaisi:simplify-length-checks into 1de31a4ed1d0a9cd33ff64199f7e91f23e99c11e on uber:master.