diff --git a/fl16-inputmodules/src/games/pong.rs b/fl16-inputmodules/src/games/pong.rs index c063386c..9fc4f38e 100644 --- a/fl16-inputmodules/src/games/pong.rs +++ b/fl16-inputmodules/src/games/pong.rs @@ -114,10 +114,8 @@ impl PongState { self.paddles.1 += 1; } } - GameControlArg::SecondRight => { - if self.paddles.1 >= 1 { - self.paddles.1 -= 1; - } + GameControlArg::SecondRight if self.paddles.1 >= 1 => { + self.paddles.1 -= 1; } _ => {} }