detector: use [] instead of false
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
2557cd9a6e
commit
9ac4a31e19
|
@ -173,7 +173,11 @@ class Detector:
|
||||||
def run(self, callback: Callable[[DetectedCommit], None]) -> int:
|
def run(self, callback: Callable[[DetectedCommit], None]) -> int:
|
||||||
log.info(f"Running commit detector")
|
log.info(f"Running commit detector")
|
||||||
new_branches = self._repo.list_branches()
|
new_branches = self._repo.list_branches()
|
||||||
|
if not new_branches:
|
||||||
|
new_branches = []
|
||||||
new_tags = self._repo.list_tags()
|
new_tags = self._repo.list_tags()
|
||||||
|
if not new_tags:
|
||||||
|
new_tags = []
|
||||||
|
|
||||||
# remove removed
|
# remove removed
|
||||||
old_keys = self._branches.keys()
|
old_keys = self._branches.keys()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user