Skip to content

Commit

Permalink
fix bug in RegionInterest::get_for
Browse files Browse the repository at this point in the history
  • Loading branch information
shadawck committed Jun 17, 2023
1 parent 5d99087 commit eb90ff7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/region_interest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ impl RegionInterest {
///
/// Returns a `RegionInterest` instance
pub fn new(client: Client) -> Self {

let res = if client.country.eq(&Country::ALL) {
"COUNTRY"
} else {
Expand Down Expand Up @@ -178,8 +177,6 @@ impl RegionInterest {
None => Err(KeywordNotSet).unwrap(),
};

let response_index = keyword_index + 1;

self.send_request()[response_index].clone()
self.send_request()[keyword_index].clone()
}
}

0 comments on commit eb90ff7

Please sign in to comment.