mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Declare functions instead of assigning to lambdas
This commit is contained in:
parent
e3b2473383
commit
95bb7bd7f9
1 changed files with 6 additions and 2 deletions
|
|
@ -136,9 +136,13 @@ async def sync(
|
|||
raise BothReadOnly
|
||||
|
||||
if conflict_resolution == "a wins":
|
||||
conflict_resolution = lambda a, b: a
|
||||
|
||||
def conflict_resolution(a, b):
|
||||
return a
|
||||
elif conflict_resolution == "b wins":
|
||||
conflict_resolution = lambda a, b: b
|
||||
|
||||
def conflict_resolution(a, b):
|
||||
return b
|
||||
|
||||
status_nonempty = bool(next(status.iter_old(), None))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue