From 97c10b35c26601ae9fd40cac09a809c14d063803 Mon Sep 17 00:00:00 2001 From: Wyatt Hoodes Date: Tue, 30 Jul 2019 08:37:28 -1000 Subject: [PATCH] analytics/views: Remove redundant check of `if end is None`. --- analytics/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytics/views.py b/analytics/views.py index 1c9093a3e6..c9a5f6f4cd 100644 --- a/analytics/views.py +++ b/analytics/views.py @@ -243,7 +243,7 @@ def get_chart_data(request: HttpRequest, user_profile: UserProfile, chart_name: if end is None: end = max(last_successful_fill(stat.property) or datetime.min.replace(tzinfo=timezone_utc) for stat in stats) - if end is None or start > end: + if start > end: logging.warning("User from realm %s attempted to access /stats, but the computed " "start time: %s (creation of realm or installation) is later than the computed " "end time: %s (last successful analytics update). Is the "