From 28cb6c9ffb873a93fcf8f300a3df549fdf4da40f Mon Sep 17 00:00:00 2001 From: Michael Sargis <102698294+MichaelMVS@users.noreply.github.com> Date: Sat, 11 Apr 2026 04:35:56 -0400 Subject: [PATCH] Remove duplicate attribute initialization in SimpleAiohttpChecker.__init__ (#2513) self.allow_redirects and self.timeout were each initialized twice in SimpleAiohttpChecker.__init__, which is redundant code. Co-authored-by: zocomputer --- maigret/checking.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/maigret/checking.py b/maigret/checking.py index c1e6994..389d362 100644 --- a/maigret/checking.py +++ b/maigret/checking.py @@ -61,8 +61,6 @@ class SimpleAiohttpChecker(CheckerBase): self.headers = None self.allow_redirects = True self.timeout = 0 - self.allow_redirects = True - self.timeout = 0 self.method = 'get' self.payload = None