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:
@@ -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 },
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user