mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
ruff: Fix PLR6104 Use += to perform an augmented assignment directly.
This is a preview rule, not yet enabled by default. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b96feb34f6
commit
1e9b6445a9
@@ -32,7 +32,7 @@ class PushNotificationsWorker(QueueProcessingWorker):
|
||||
worker_num: int | None = None,
|
||||
) -> None:
|
||||
if settings.MOBILE_NOTIFICATIONS_SHARDS > 1 and worker_num is not None: # nocoverage
|
||||
self.queue_name = self.queue_name + f"_shard{worker_num}"
|
||||
self.queue_name += f"_shard{worker_num}"
|
||||
super().__init__(threaded, disable_timeout, worker_num)
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user