Browse Source

Fix ternary

Gabriel Handford 8 years ago
parent
commit
31123f908d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      atom/common/platform_util_mac.mm

+ 1 - 2
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) {