techdocs: Add missing await when checking for existing docs

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2021-03-12 11:23:35 +01:00
parent 11242ac41e
commit a6067fe42d
@@ -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;