Skip to content

Commit 79bc289

Browse files
committed
cmp user_id first
1 parent dda8ecd commit 79bc289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openhands/runtime/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def _handle_action(self, event: Action) -> None:
217217
assert event.timeout is not None
218218
try:
219219
if isinstance(event, CmdRunAction):
220-
if '$GITHUB_TOKEN' in event.command and self.user_id:
220+
if self.user_id and '$GITHUB_TOKEN' in event.command:
221221
gh_client = GithubServiceImpl(user_id=self.user_id)
222222
token = await gh_client.get_latest_token()
223223
if token:

0 commit comments

Comments
 (0)