From 7e95682f78c7cd7d6cdf8859a0fd9249be82380f Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 22 Sep 2023 20:24:51 +0200 Subject: [PATCH] fixup! chore(binding-http): enable eslint/strict-boolean-expressions --- packages/binding-http/src/http-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-http/src/http-server.ts b/packages/binding-http/src/http-server.ts index e697dcdb6..2acad6640 100644 --- a/packages/binding-http/src/http-server.ts +++ b/packages/binding-http/src/http-server.ts @@ -306,7 +306,7 @@ export default class HttpServer implements ProtocolServer { } private addUrlRewriteEndpoints(form: TD.Form, forms: Array): void { - if (this.urlRewrite) { + if (this.urlRewrite != null) { for (const [inUri, toUri] of Object.entries(this.urlRewrite)) { if (form.href.endsWith(toUri)) { const form2: TD.Form = JSON.parse(JSON.stringify(form)); // deep copy