mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
await .exists()
for consistency
See comment https://github.com/atom/atom/pull/22578#issuecomment-864708333 What I didn't realize was that line 144 was in an async return. So this commit shouldn't actually change any functionality. Nevertheless, await it for consistency.
This commit is contained in:
parent
18ed71e528
commit
e4c1b65eda
@ -141,7 +141,7 @@ async function isValidGitDirectory(directory) {
|
||||
return (
|
||||
(await directory.getFile('HEAD').exists()) &&
|
||||
(await commonDir.getSubdirectory('objects').exists()) &&
|
||||
commonDir.getSubdirectory('refs').exists()
|
||||
await commonDir.getSubdirectory('refs').exists()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user