From 2acaba79fea4498cc04da06c7c38e6a92cc3936b Mon Sep 17 00:00:00 2001 From: frankknoll Date: Mon, 3 Apr 2023 00:06:36 +0200 Subject: [PATCH] refactoring --- src/BatchCodeTableFactory.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/BatchCodeTableFactory.py b/src/BatchCodeTableFactory.py index 7510dc8c835..2506e560dbe 100644 --- a/src/BatchCodeTableFactory.py +++ b/src/BatchCodeTableFactory.py @@ -29,10 +29,7 @@ class BatchCodeTableFactory: def _getBatchCodeTableByCountry(self, country): countryBatchCodeTable = self._getCountryBatchCodeTable() - if country in countryBatchCodeTable.index: - return countryBatchCodeTable.loc[country] - else: - return self._getEmptyBatchCodeTable(countryBatchCodeTable) + return countryBatchCodeTable.loc[country] if country in countryBatchCodeTable.index else self._getEmptyBatchCodeTable(countryBatchCodeTable) def _getCountryBatchCodeTable(self): return SummationTableFactory.createSummationTable(