1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-05 04:20:49 +08:00

Fix: inconsistent return type in get_commit for empty log

This commit is contained in:
positnuec
2026-06-30 21:57:45 +08:00
parent e4b87add08
commit d9a9b784af

View File

@@ -56,7 +56,9 @@ class Updater(DeployConfig, GitManager, PipManager):
)
if not log:
return None, None, None, None
if n == 1:
return None, None, None, None
return []
logs = log.split("\n")
logs = list(map(lambda log: tuple(log.split("---")), logs))