fix: omg why do i forget these things here
This commit is contained in:
parent
8eac733a5d
commit
b285753b24
1 changed files with 3 additions and 3 deletions
|
|
@ -323,8 +323,6 @@ async function hasAclW() {
|
|||
const config = await getConfig()
|
||||
path = config.acl_policy_path
|
||||
} catch {}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
if (!path) {
|
||||
|
|
@ -335,7 +333,9 @@ async function hasAclW() {
|
|||
path = resolve(path)
|
||||
await access(path, constants.W_OK)
|
||||
return true
|
||||
} catch {}
|
||||
} catch (error) {
|
||||
console.log('Cannot acquire read access to ACL file', error)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue