diff --git a/src/api.rs b/src/api.rs index d3ee6ca..20f6580 100644 --- a/src/api.rs +++ b/src/api.rs @@ -54,8 +54,10 @@ pub fn clean_old_reviews(pr_url: &str, user: &str, token: &str) -> Result<()> { for review in reviews { //NOTE: skip team reviews since they do not contain a username // and are obviously not the service account - if let Some(_) = review.get("team") { - continue; + if let Some(value) = review.get("team") { + if !value.is_null() { + continue; + } } let id = review .get("id")