We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd19a7 commit c0e0306Copy full SHA for c0e0306
bittensor_cli/src/commands/stake/claim.py
@@ -79,12 +79,13 @@ async def set_claim_type(
79
)
80
console.print(claim_table)
81
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
-)
+ new_type = (
+ claim_type
+ if claim_type
+ else Prompt.ask(
+ "Select new root claim type", choices=["Swap", "Keep"], default=current_type
+ )
88
89
if new_type == current_type:
90
msg = f"Root claim type is already set to '{current_type}'. No change needed."
91
console.print(f"[yellow]{msg}[/yellow]")
0 commit comments