chore: enable lint cleanup rules (#4673)

## Summary

Enable small cleanup rules for redundant boolean expressions, object
ownership checks, assignments, and object construction.

The existing call sites now use the simpler equivalent forms, keeping
future code consistent without changing behavior.

Base: [#4672](https://github.com/triggerdotdev/trigger.dev/pull/4672)
This commit is contained in:
Chris Arderne
2026-08-19 08:28:57 +01:00
committed by GitHub
parent fe1d5f6961
commit 0f725cf2ba
17 changed files with 42 additions and 34 deletions
@@ -1950,7 +1950,7 @@ export class PostgresRunStore implements RunStore {
?.filter((c) => c.index !== undefined)
.sort((a, b) => a.index! - b.index!)
.map((w) => w.id),
isValid: error ? false : true,
isValid: !error,
error,
},
include: { checkpoint: true },
+1 -1
View File
@@ -1385,7 +1385,7 @@ export class TSQLParseTreeConverter implements TSQLParserVisitor<any> {
}
const args: Expression[] = ctx._columnArgList ? this.visitExprList(ctx._columnArgList) : [];
const distinct = ctx.DISTINCT() ? true : false;
const distinct = ctx.DISTINCT() !== undefined;
return { expression_type: "call", name, params: parameters, args, distinct };
}