Mercurial > p > roundup > code
comparison roundup/rest.py @ 8192:b4d7f9358ba6
chore(ruff): return/suppress boolen directly
I suppressed one 'if bool: return true else return false' so I could
see in codecov that code was returning both true and false.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 11 Dec 2024 13:29:11 -0500 |
| parents | 30818cc18058 |
| children | d06a140eab4d |
comparison
equal
deleted
inserted
replaced
| 8191:30818cc18058 | 8192:b4d7f9358ba6 |
|---|---|
| 237 if clean_etag is not None: | 237 if clean_etag is not None: |
| 238 if clean_etag != node_etag: | 238 if clean_etag != node_etag: |
| 239 return False | 239 return False |
| 240 have_etag_match = True | 240 have_etag_match = True |
| 241 | 241 |
| 242 if have_etag_match: | 242 if have_etag_match: # noqa: SIM103 leave for coverage reports |
| 243 return True | 243 return True |
| 244 else: | 244 else: |
| 245 return False | 245 return False |
| 246 | 246 |
| 247 | 247 |
