techdocs: Add missing await when checking for existing docs
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
@@ -141,7 +141,7 @@ export class LocalPublish implements PublisherBase {
|
||||
|
||||
// Check if the file exists
|
||||
try {
|
||||
fs.access(indexHtmlPath, fs.constants.F_OK);
|
||||
await fs.access(indexHtmlPath, fs.constants.F_OK);
|
||||
return true;
|
||||
} catch (err) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user