detector: use [] instead of false

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-08-09 19:31:58 +02:00
parent 2557cd9a6e
commit 9ac4a31e19
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31

View File

@ -173,7 +173,11 @@ class Detector:
def run(self, callback: Callable[[DetectedCommit], None]) -> int:
log.info(f"Running commit detector")
new_branches = self._repo.list_branches()
if not new_branches:
new_branches = []
new_tags = self._repo.list_tags()
if not new_tags:
new_tags = []
# remove removed
old_keys = self._branches.keys()