From cd074d83a3b0d2f5fb5b27c96a5452ade559c52f Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 22 Sep 2023 20:42:19 +0200 Subject: [PATCH] fixup! chore(binding-http): enable eslint/strict-boolean-expressions --- packages/binding-http/src/http-server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/binding-http/src/http-server.ts b/packages/binding-http/src/http-server.ts index 2acad6640..d54c6289e 100644 --- a/packages/binding-http/src/http-server.ts +++ b/packages/binding-http/src/http-server.ts @@ -308,7 +308,9 @@ export default class HttpServer implements ProtocolServer { private addUrlRewriteEndpoints(form: TD.Form, forms: Array): void { if (this.urlRewrite != null) { for (const [inUri, toUri] of Object.entries(this.urlRewrite)) { - if (form.href.endsWith(toUri)) { + console.log(toUri); + const foo = form.href.endsWith(toUri); + if (foo) { const form2: TD.Form = JSON.parse(JSON.stringify(form)); // deep copy form2.href = form2.href.substring(0, form.href.lastIndexOf(toUri)) + inUri; forms.push(form2);