mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
Fix ternary
This commit is contained in:
committed by
Cheng Zhao
parent
99a5258999
commit
31123f908d
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user