Fix ternary
authorGabriel Handford <gabrielh@gmail.com>
Wed, 2 Nov 2016 23:22:20 +0000 (16:22 -0700)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 17 Nov 2016 01:33:24 +0000 (10:33 +0900)
atom/common/platform_util_mac.mm

index 0bd902a..e630b26 100644 (file)
@@ -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) {