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:
steven nguyen 2021-06-21 12:34:47 -05:00 committed by GitHub
parent 18ed71e528
commit e4c1b65eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
);
}