mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Use int instead of int*
This commit is contained in:
parent
8195206d04
commit
46e3ec17be
@ -50,9 +50,9 @@ public:
|
|||||||
if (!exists)
|
if (!exists)
|
||||||
return CefV8Value::CreateBool(false);
|
return CefV8Value::CreateBool(false);
|
||||||
|
|
||||||
int *ignored;
|
int ignored;
|
||||||
if (git_ignore_path_is_ignored(ignored, repo, path) >= GIT_OK)
|
if (git_ignore_path_is_ignored(&ignored, repo, path) == GIT_OK)
|
||||||
return CefV8Value::CreateBool(ignored && *ignored == 1);
|
return CefV8Value::CreateBool(ignored == 1);
|
||||||
else
|
else
|
||||||
return CefV8Value::CreateBool(false);
|
return CefV8Value::CreateBool(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user