mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 13:57:39 +00:00
Clean up code
This commit is contained in:
parent
2497e548c9
commit
3906fe75dc
@ -153,12 +153,7 @@ static bool file_getprop(const char *name, char *value) {
|
||||
}
|
||||
|
||||
static bool check_pb() {
|
||||
static bool checked = false;
|
||||
static bool use_pb = false;
|
||||
if (!checked) {
|
||||
checked = true;
|
||||
use_pb = access(PERSISTENT_PROPERTY_DIR "/persistent_properties", R_OK) == 0;
|
||||
}
|
||||
static bool use_pb = access(PERSISTENT_PROPERTY_DIR "/persistent_properties", R_OK) == 0;
|
||||
return use_pb;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user