Skip to content

Commit

Permalink
fix: crashing when multiple pages of leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermondev committed Nov 7, 2023
1 parent 82ef6bd commit 1788252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sexurity-poller/src/polls/reputation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ fn get_reputation_data(handle: &str, client: &HackerOneClient, previous_data: Op

if page_info.has_next_page {
let end_cursor = page_info.end_cursor.as_ref().unwrap();
return Ok(get_reputation_data(handle, client, Some(result), Some(end_cursor.clone())).unwrap());
return Ok(get_reputation_data(handle, client, Some(result), Some(end_cursor.clone())?);
}

Ok(result)
Expand Down

0 comments on commit 1788252

Please sign in to comment.