Skip to content

Commit

Permalink
fix: json null values count as Some
Browse files Browse the repository at this point in the history
  • Loading branch information
imgurbot12 committed Nov 7, 2024
1 parent 4fa1636 commit 7c2712f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7c2712f

Please sign in to comment.