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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user