[history] Fixed error when 'onCrossReturn' and 'onSuccess' called together

This commit is contained in:
Andrew Golovashevich 2025-03-20 02:41:03 +03:00
parent b9e02d68f8
commit 87386193ee

View File

@ -90,7 +90,8 @@ inline fun <R> safeAutoClose3e(
if (!wasError) {
if (crossReturned)
onCrossReturn()
onSuccess()
else
onSuccess()
}
}
return ret