Skip to content

Commit c0e0306

Browse files
committed
update
1 parent 7fd19a7 commit c0e0306

File tree

1 file changed

+7
-6
lines changed
  • bittensor_cli/src/commands/stake

1 file changed

+7
-6
lines changed

bittensor_cli/src/commands/stake/claim.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ async def set_claim_type(
7979
)
8080
console.print(claim_table)
8181

82-
if claim_type is not None:
83-
new_type = claim_type
84-
else:
85-
new_type = claim_type if claim_type else Prompt.ask(
86-
"Select new root claim type", choices=["Swap", "Keep"], default=current_type
87-
)
82+
new_type = (
83+
claim_type
84+
if claim_type
85+
else Prompt.ask(
86+
"Select new root claim type", choices=["Swap", "Keep"], default=current_type
87+
)
88+
)
8889
if new_type == current_type:
8990
msg = f"Root claim type is already set to '{current_type}'. No change needed."
9091
console.print(f"[yellow]{msg}[/yellow]")

0 commit comments

Comments
 (0)