From 88e7ac831e7b24efdd3b7a01332c79b987543f00 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 22 Sep 2023 20:46:42 +0200 Subject: [PATCH] fixup! chore(binding-http): enable eslint/strict-boolean-expressions --- packages/binding-http/src/http-server.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/binding-http/src/http-server.ts b/packages/binding-http/src/http-server.ts index d54c6289e..9e3d8cd87 100644 --- a/packages/binding-http/src/http-server.ts +++ b/packages/binding-http/src/http-server.ts @@ -308,9 +308,8 @@ 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)) { - console.log(toUri); - const foo = form.href.endsWith(toUri); - if (foo) { + // TODO: Without === true, this is currently an eslint false positiv + if (form.href.endsWith(toUri) === true) { 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);