FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: remove not needed nested condition · NativeScript/NativeScript@3c9fffa · GitHub

Commit 3c9fffa

Browse files
VladimirAmiorkov
committed
chore: remove not needed nested condition
1 parent 1243ef6 commit 3c9fffa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎tns-core-modules/ui/core/view/view.ios.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,10 +1007,8 @@ export namespace ios {
10071007

10081008
public popoverPresentationControllerDidDismissPopover(popoverPresentationController: UIPopoverPresentationController) {
10091009
const owner = this.owner.get();
1010-
if (owner) {
1011-
if (typeof this.closedCallback === "function") {
1012-
this.closedCallback();
1013-
}
1010+
if (owner && typeof this.closedCallback === "function") {
1011+
this.closedCallback();
10141012
}
10151013
}
10161014
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL