From 31123f908da20405c45dacf708e89fa6a669b9fb Mon Sep 17 00:00:00 2001 From: Gabriel Handford Date: Wed, 2 Nov 2016 16:22:20 -0700 Subject: [PATCH] Fix ternary --- atom/common/platform_util_mac.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atom/common/platform_util_mac.mm b/atom/common/platform_util_mac.mm index 0bd902af5774..e630b264d278 100644 --- a/atom/common/platform_util_mac.mm +++ b/atom/common/platform_util_mac.mm @@ -202,8 +202,7 @@ bool OpenExternal(const GURL& url, bool activate) { if (!ns_url) { return false; } - NSError *error = OpenURL(ns_url, activate); - return error ? false : true; + return !OpenURL(ns_url, activate); } void OpenExternal(const GURL& url, bool activate, const OpenExternalCallback& c) {