Skip to content

Commit 12b18d7

Browse files
ted kaemmingmattrobenolt
authored andcommitted
Convert another identity check to equality.
Paranoia abounds after GH-2549.
1 parent 9283353 commit 12b18d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/digests/backends/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def unschedule():
474474
# events to the timeline while we are trying to delete it.
475475
pipeline.watch(timeline_key)
476476
pipeline.multi()
477-
if connection.zcard(timeline_key) is 0:
477+
if connection.zcard(timeline_key) == 0:
478478
cleanup_records(pipeline)
479479
pipeline.delete(make_last_processed_timestamp_key(timeline_key))
480480
pipeline.zrem(make_schedule_key(self.namespace, SCHEDULE_STATE_READY), key)

0 commit comments

Comments
 (0)