ruff: Fix PLW0602 Using global but no assignment is done.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-12-11 01:46:24 -08:00
committed by Tim Abbott
parent 1ac5526023
commit f7e97b1180
5 changed files with 1 additions and 9 deletions

View File

@@ -65,7 +65,6 @@ def remote_cache_stats_start() -> None:
def remote_cache_stats_finish() -> None:
global remote_cache_total_time
global remote_cache_total_requests
global remote_cache_time_start
remote_cache_total_requests += 1
remote_cache_total_time += time.time() - remote_cache_time_start