From 66a696f40e9705c81ec38c2319208fb018bfa2a2 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 13 May 2021 14:13:45 +0200 Subject: [PATCH] Application: fix isInNodeModules is inverted --- src/Application.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Application.ts b/src/Application.ts index f9f8e7b..3f41f07 100644 --- a/src/Application.ts +++ b/src/Application.ts @@ -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 { - return !await doesFileExist('node_modules/swaf'); + return await doesFileExist('node_modules/swaf'); } public isReady(): boolean {