Application: fix isInNodeModules is inverted
This commit is contained in:
parent
26140d2028
commit
66a696f40e
@ -3,7 +3,6 @@ import express, {NextFunction, Request, Response, Router} from 'express';
|
|||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import nunjucks from "nunjucks";
|
import nunjucks from "nunjucks";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import url from "url";
|
|
||||||
|
|
||||||
import ApplicationComponent from "./ApplicationComponent.js";
|
import ApplicationComponent from "./ApplicationComponent.js";
|
||||||
import CacheProvider from "./CacheProvider.js";
|
import CacheProvider from "./CacheProvider.js";
|
||||||
@ -379,7 +378,7 @@ export default abstract class Application implements Extendable<ApplicationCompo
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async isInNodeModules(): Promise<boolean> {
|
public async isInNodeModules(): Promise<boolean> {
|
||||||
return !await doesFileExist('node_modules/swaf');
|
return await doesFileExist('node_modules/swaf');
|
||||||
}
|
}
|
||||||
|
|
||||||
public isReady(): boolean {
|
public isReady(): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user