From 7e1bc59f80e80fd6fc835b222324656420d86ed7 Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 22 Jan 2018 11:10:22 +0100 Subject: [PATCH] code review after merge (removed unnecessary code-pieces resp. code-duplication) --- fail2ban/tests/databasetestcase.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/fail2ban/tests/databasetestcase.py b/fail2ban/tests/databasetestcase.py index 7be55e43..87400d74 100644 --- a/fail2ban/tests/databasetestcase.py +++ b/fail2ban/tests/databasetestcase.py @@ -172,8 +172,6 @@ class DatabaseTest(LogCaptureTestCase): os.remove(self.db._dbBackupFilename) def testUpdateDb2(self): - if Fail2BanDb is None: # pragma: no cover - return self.db = None if self.dbFilename is None: # pragma: no cover _, self.dbFilename = tempfile.mkstemp(".db", "fail2ban_")