Fix pacman search output if there are no results
This commit is contained in:
parent
655f4cf24b
commit
af1891f3b9
|
@ -14,7 +14,7 @@ pub fn query_pacman(ctx: Context, msg: Message, args: Vec<&str>) {
|
||||||
|_e| EMPTY_RESULT,
|
|_e| EMPTY_RESULT,
|
||||||
);
|
);
|
||||||
// this is 1 for most packages and 2 if there’s a second version in testing
|
// this is 1 for most packages and 2 if there’s a second version in testing
|
||||||
if response.results.is_empty() {
|
if response.results.len() != 0 {
|
||||||
respond_with_results(msg.channel_id, &response.results, &ctx);
|
respond_with_results(msg.channel_id, &response.results, &ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user