Skip to content

Commit ed3d29c

Browse files
fix: remove unused modified_count variable (F841)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 75b3e64 commit ed3d29c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/processor/src/libs/agent_framework/middlewares.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ async def process(
146146

147147
# Modify user messages by creating new messages with enhanced text
148148
modified_messages: list[Message] = []
149-
modified_count = 0
150149

151150
for message in context.messages:
152151
if message.role == ROLE_USER and message.text:
@@ -161,7 +160,6 @@ async def process(
161160

162161
modified_message = Message(role=message.role, text=updated_text, contents=updated_text)
163162
modified_messages.append(modified_message)
164-
modified_count += 1
165163
else:
166164
modified_messages.append(message)
167165

0 commit comments

Comments
 (0)