Skip to content

Commit 4124f54

Browse files
ftnextcopybara-github
authored andcommitted
refactor: Remove unnecessary branching in run_cli
Merge #2537 Streamlined code flow by removing redundant if/else logic COPYBARA_INTEGRATE_REVIEW=#2537 from ftnext:refactor-run-cli d799e17 PiperOrigin-RevId: 827153566
1 parent c4c127d commit 4124f54

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/google/adk/cli/cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ async def run_cli(
183183
content = event.content
184184
if not content or not content.parts or not content.parts[0].text:
185185
continue
186-
if event.author == 'user':
187-
click.echo(f'[user]: {content.parts[0].text}')
188-
else:
189-
click.echo(f'[{event.author}]: {content.parts[0].text}')
186+
click.echo(f'[{event.author}]: {content.parts[0].text}')
190187

191188
await run_interactively(
192189
root_agent,

0 commit comments

Comments
 (0)