Event: Simplify the check for saved data in leverageNative
commitdfe212d5a1eed6b4a67d1cbd04ece09bbac33699
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 3 Apr 2023 16:21:15 +0000 (3 18:21 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2023 16:21:15 +0000 (3 18:21 +0200)
treef7ee2418416dab387fd3e38e9a1f0c2af60d2d53
parent6ad3651dbfea9e9bb56e608f72b4ef2f97bd4e70
Event: Simplify the check for saved data in leverageNative

Previously, when `leverageNative` handled async events, there was
a case where an empty placeholder object was set as a result.
Covering both such an object and `false` required a `length` check.
However, this is not necessary since gh-5223 and the check was
already simplified in other places; this one was missed.

Closes gh-5236
Ref gh-5223
src/event.js