mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-02-01 14:26:44 -06:00
refactor: cleanup struct fields, resolve clippy lints, resolve/ignore svelte lints, checks error on warn
This commit is contained in:
+8
-10
@@ -111,17 +111,15 @@ pub async fn session(client: ApiClient, json: bool) -> Result<(), Box<dyn std::e
|
||||
} else {
|
||||
output::error("Session expired or invalid");
|
||||
}
|
||||
} else if json {
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::json!({
|
||||
"authenticated": false,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
if json {
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::json!({
|
||||
"authenticated": false,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
output::info("Not logged in");
|
||||
}
|
||||
output::info("Not logged in");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user