Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions codeflash/cli_cmds/cmd_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from codeflash.cli_cmds.console import console
from codeflash.cli_cmds.oauth_handler import perform_oauth_signin
from codeflash.code_utils.env_utils import get_codeflash_api_key
from codeflash.code_utils.shell_utils import get_shell_rc_path, save_api_key_to_rc
from codeflash.code_utils.shell_utils import save_api_key_to_rc
from codeflash.either import is_successful


Expand All @@ -29,10 +29,6 @@ def auth_login() -> None:
click.echo("Authentication failed.")
raise SystemExit(1)

shell_rc_path = get_shell_rc_path()
if not shell_rc_path.exists() and os.name == "nt":
shell_rc_path.touch()

result = save_api_key_to_rc(api_key)
if is_successful(result):
click.echo(result.unwrap())
Expand Down
Loading