Fix cpplint warning
This commit is contained in:
parent
9ca022c98a
commit
47d7f2c050
1 changed files with 3 additions and 3 deletions
|
@ -357,10 +357,10 @@ void Session::DisableNetworkEmulation() {
|
||||||
base::Passed(&conditions)));
|
base::Passed(&conditions)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::SetCertVerifyProc(v8::Local<v8::Value> val, mate::Arguments* args) {
|
void Session::SetCertVerifyProc(v8::Local<v8::Value> val,
|
||||||
|
mate::Arguments* args) {
|
||||||
AtomCertVerifier::VerifyProc proc;
|
AtomCertVerifier::VerifyProc proc;
|
||||||
if (val.IsEmpty() ||
|
if (!(val->IsNull() || mate::ConvertFromV8(args->isolate(), val, &proc))) {
|
||||||
!(val->IsNull() || mate::ConvertFromV8(args->isolate(), val, &proc))) {
|
|
||||||
args->ThrowError("Must pass null or function");
|
args->ThrowError("Must pass null or function");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue