Skip to content

Commit 8316fd9

Browse files
committed
Update bot.rs
1 parent 4eca71a commit 8316fd9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/bot.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,9 @@ impl LineBot {
417417
}
418418

419419
pub fn get_follower_ids(&self, continuation_token: Option<&str>) -> Result<Response, Error> {
420-
let mut query: Vec<(&str, &str)> = Vec::new();
421-
match continuation_token {
422-
Some(v) => {
423-
&query.push(("start", v));
424-
}
425-
None => {}
420+
let mut query: Vec<(&str, &str)> = vec![];
421+
if let Some(v) = continuation_token {
422+
&query.push(("start", v));
426423
}
427424
self.http_client.get("/followers/ids", query, json!({}))
428425
}

0 commit comments

Comments
 (0)