Declare functions instead of assigning to lambdas

This commit is contained in:
Hugo Osvaldo Barrera 2025-08-29 12:36:32 +02:00
parent e3b2473383
commit 95bb7bd7f9

View file

@ -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))