Skip to content

Commit 9f0f98e

Browse files
committed
Update cmd_init.py
1 parent 72f3022 commit 9f0f98e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

codeflash/cli_cmds/cmd_init.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,11 @@ def should_modify_pyproject_toml() -> bool:
144144
if "tests_root" not in config or config["tests_root"] is None or not Path(config["tests_root"]).is_dir():
145145
return True
146146

147-
create_toml = Confirm.ask(
147+
return Confirm.ask(
148148
"✅ A valid Codeflash config already exists in this project. Do you want to re-configure it?",
149149
default=False,
150150
show_default=True,
151151
)
152-
return create_toml
153152

154153

155154
def collect_setup_info() -> SetupInfo:
@@ -959,10 +958,9 @@ def ask_for_telemetry() -> bool:
959958
"""Prompt the user to enable or disable telemetry."""
960959
from rich.prompt import Confirm
961960

962-
enable_telemetry = Confirm.ask(
961+
return Confirm.ask(
963962
"⚡️ Would you like to enable telemetry to help us improve the Codeflash experience?",
964963
default=True,
965964
show_default=True,
966965
)
967966

968-
return enable_telemetry

0 commit comments

Comments
 (0)