From 291cbf08098c12fb8a8fa9203f5d3c1e9c843153 Mon Sep 17 00:00:00 2001 From: Semjon Kerner Date: Sun, 13 Dec 2020 21:07:06 +0100 Subject: [PATCH] fixupfixup remove condition parantheses --- fishy/engine/semifisher/fishing_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fishy/engine/semifisher/fishing_event.py b/fishy/engine/semifisher/fishing_event.py index c566346..a16b204 100644 --- a/fishy/engine/semifisher/fishing_event.py +++ b/fishy/engine/semifisher/fishing_event.py @@ -36,7 +36,7 @@ class FishEvent: def _fishing_sleep(waittime, lower_limit_ms = 16, upper_limit_ms = 2500): reaction = 0.0 - if (FishEvent.jitter and upper_limit_ms > lower_limit_ms): + if FishEvent.jitter and upper_limit_ms > lower_limit_ms: reaction = float( random.randrange(lower_limit_ms, upper_limit_ms) )/1000.0 max_wait_t = waittime+reaction if waittime+reaction <= 2.5 else 2.5 time.sleep(max_wait_t)