Commit d64ecfe
committed
Remove unnecessary type check in guardrail cleanup
Simplified the cleanup logic by removing the isinstance check for
asyncio.Task. Since _guardrail_tasks only contains real tasks created
through asyncio.create_task(), this type check is unnecessary.
This makes the code cleaner and avoids test-specific workarounds in
production code.1 parent 5e6feae commit d64ecfe
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | 755 | | |
759 | 756 | | |
760 | 757 | | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | 758 | | |
765 | | - | |
766 | | - | |
767 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
768 | 762 | | |
769 | 763 | | |
770 | 764 | | |
| |||
0 commit comments