Skip to content

Commit

Permalink
fix data availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Jul 16, 2024
1 parent 74c4f4f commit 7e2be32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asinfo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl BgpkitCommons {
if self.asinfo.is_none() {
return Err(anyhow!("asinfo is not loaded"));
}
if self.asinfo.as_ref().unwrap().load_as2org {
if !self.asinfo.as_ref().unwrap().load_as2org {
return Err(anyhow!("asinfo is not loaded with as2org data"));
}

Expand Down

0 comments on commit 7e2be32

Please sign in to comment.