Skip to content

Commit

Permalink
fixup! chore(binding-http): enable eslint/strict-boolean-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Sep 22, 2023
1 parent a6f83a4 commit 7e95682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-http/src/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default class HttpServer implements ProtocolServer {
}

private addUrlRewriteEndpoints(form: TD.Form, forms: Array<TD.Form>): void {
if (this.urlRewrite) {
if (this.urlRewrite != null) {
for (const [inUri, toUri] of Object.entries(this.urlRewrite)) {
if (form.href.endsWith(toUri)) {

Check failure on line 311 in packages/binding-http/src/http-server.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any value in conditional. An explicit comparison or type cast is required
const form2: TD.Form = JSON.parse(JSON.stringify(form)); // deep copy
Expand Down

0 comments on commit 7e95682

Please sign in to comment.