Skip to content

Commit

Permalink
Fix duplicate "No saved connections" message (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniell-olaitan authored Sep 26, 2024
1 parent 7fecde0 commit b461620
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions peepdb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,7 @@ def list():
Example:
peepdb list
"""
connections = list_connections()
if not connections:
click.echo("No saved connections.")
else:
click.echo("Saved connections:")
for name in connections:
click.echo(f"- {name}")
list_connections()


@cli.command()
Expand Down

0 comments on commit b461620

Please sign in to comment.