Skip to content

Commit b38ad69

Browse files
ericapisaniclaude
andcommitted
ref(profiler): Remove dead code in run() cleanup
Remove the no-op `buffer = None` assignment on a local variable before the function returns. Setting a local variable to None provides no GC benefit since it goes out of scope immediately after. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 5c8f200 commit b38ad69

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sentry_sdk/profiler/continuous_profiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ def run(self) -> None:
439439
buffer = self.buffer
440440
if buffer is not None:
441441
buffer.flush()
442-
buffer = None
443442

444443

445444
class ThreadContinuousScheduler(ContinuousScheduler):

0 commit comments

Comments
 (0)