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) {