remove if

This commit is contained in:
Simon Knott 2024-07-31 16:23:42 +02:00
parent cc78c53093
commit b55ad6028a
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -1571,8 +1571,7 @@ export class Frame extends SdkObject {
dispose(reason: string) {
for (const data of this._contextData.values()) {
if (data.context)
data.context.contextDestroyed(reason);
data.context?.contextDestroyed(reason);
data.contextPromise.resolve({ destroyedReason: reason });
}
if (this._parentFrame)