Skip to content

Commit

Permalink
Merge pull request #107 from makr11st/bugfix/fix_pagination_vulnurabi…
Browse files Browse the repository at this point in the history
…lities_example

Fix pagination for vulnerabilities example
  • Loading branch information
makr11st committed Aug 30, 2023
2 parents bd8f77d + 37108db commit f98db90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_falcon"
version = "0.3.0"
version = "0.3.1"
authors = ["CrowdStrike Inc"]
description = "Rust bindings for CrowdStrike Falcon API"
homepage = "https://github.com/CrowdStrike/rusty-falcon"
Expand Down
6 changes: 4 additions & 2 deletions examples/falcon_spotlight_vulnerabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ async fn main() {
}

after = match response.meta.next() {
None => break,
Some(pagination_token) => Some(pagination_token.to_owned()),
Some(pagination_token) if pagination_token.is_empty() => {
Some(pagination_token.to_owned())
}
_ => break,
};
}
print!("]");
Expand Down

0 comments on commit f98db90

Please sign in to comment.