Skip to content

Commit e47b91c

Browse files
Merge pull request #376 from microsoft/psl-codeql-fixcodmod
fix: Explicit returns mixed with implicit (fall through) returns
2 parents 0a360a5 + f427e03 commit e47b91c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/backend/sql_agents/helpers/comms_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ async def select_agent(self, agents, history):
7979
),
8080
None,
8181
)
82+
# No matching case found, so explicitly return None
83+
return None
8284

8385
# class for termination strategy
8486
class ApprovalTerminationStrategy(TerminationStrategy):

0 commit comments

Comments
 (0)