Skip to content

Commit

Permalink
fix(client): catch json suspended user error in better place
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid committed Sep 25, 2024
1 parent 5226019 commit f0ae3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ pub async fn json(path: String, quarantine: bool) -> Result<Value, String> {
println!("{json:?}");

// If user is suspended
if json["data"]["is_suspended"].as_bool().unwrap_or_default() {
if json["data"]["is_suspended"].as_bool().unwrap_or_default() {
return Err("suspended".into());
}

Expand Down

0 comments on commit f0ae3d3

Please sign in to comment.