replace boundary check with range contains

This commit is contained in:
Lionarius
2023-04-26 11:43:13 +03:00
parent d57206973e
commit b83c9af73d

View File

@@ -126,7 +126,7 @@ impl MixerCommand for RatingCommand {
.as_u64() .as_u64()
.unwrap(); .unwrap();
if rating < 1 || rating > 5000 { if !(1..=5000).contains(&rating) {
interaction interaction
.create_interaction_response(ctx, |response| { .create_interaction_response(ctx, |response| {
response response