Skip to content

Commit

Permalink
chore: remove unnecessary var
Browse files Browse the repository at this point in the history
  • Loading branch information
awwpotato committed Oct 16, 2024
1 parent 452098e commit 8cdf59b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,20 @@ pub async fn get_pulse_data(
- Local::now())
.num_seconds();

let formated_time: String = match &queue_time {
3600.. => {
format!("and will queue in {} hour(s)", queue_time / 3600)
}
60..3600 => {
format!("and will be queue in {} minute(s)", queue_time / 60)
}
30..60 => format!("and will queue in {} second(s)", queue_time),
..30 => "is queueing NOW".to_string(),
};
format!(
"Team {}'s next match is {} {}",
team_key, nexus_match.label, formated_time
team_key,
nexus_match.label,
match &queue_time {
3600.. => {
format!("and will queue in {} hour(s)", queue_time / 3600)
}
60..3600 => {
format!("and will be queue in {} minute(s)", queue_time / 60)
}
30..60 => format!("and will queue in {} second(s)", queue_time),
..30 => "is queueing NOW".to_string(),
}
)
} else {
format!(
Expand Down

0 comments on commit 8cdf59b

Please sign in to comment.