Application: fix isInNodeModules is inverted

This commit is contained in:
Alice Gaudon 2021-05-13 14:13:45 +02:00
parent 26140d2028
commit 66a696f40e

View File

@ -3,7 +3,6 @@ import express, {NextFunction, Request, Response, Router} from 'express';
import * as fs from "fs";
import nunjucks from "nunjucks";
import * as path from "path";
import url from "url";
import ApplicationComponent from "./ApplicationComponent.js";
import CacheProvider from "./CacheProvider.js";
@ -379,7 +378,7 @@ export default abstract class Application implements Extendable<ApplicationCompo
}
public async isInNodeModules(): Promise<boolean> {
return !await doesFileExist('node_modules/swaf');
return await doesFileExist('node_modules/swaf');
}
public isReady(): boolean {