style: cargo fmt and nested if fix
This commit is contained in:
1 parent
78918b6d88
commit
49be500b8c
2 files changed
+10
-15
No files matched your search
+9
-9
@@ -171,15 +171,15 @@ async fn main() -> Result<()> {
|
||||
cancellation_token.clone(),
|
||||
)));
|
||||
|
||||
if args.command.is_none() {
|
||||
if let Some(name) = args.global.servarr_name.as_deref() {
|
||||
let mut app = app.lock().await;
|
||||
anyhow::ensure!(
|
||||
app.server_tabs.select_tab_by_title(name.trim()),
|
||||
"A Servarr titled '{}' was not found in your configuration file",
|
||||
name.trim()
|
||||
);
|
||||
}
|
||||
if args.command.is_none()
|
||||
&& let Some(name) = args.global.servarr_name.as_deref()
|
||||
{
|
||||
let mut app = app.lock().await;
|
||||
anyhow::ensure!(
|
||||
app.server_tabs.select_tab_by_title(name.trim()),
|
||||
"A Servarr titled '{}' was not found in your configuration file",
|
||||
name.trim()
|
||||
);
|
||||
}
|
||||
|
||||
match args.command {
|
||||
|
||||
Reference in new issue
Block a user