Skip to content

Commit c8abb82

Browse files
committed
chore: fix lint error
1 parent 0fe8f00 commit c8abb82

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/operations/operators/createOperator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export function createOperator(mOptions: MigrationOptions): CreateOperator {
4444
merges = false,
4545
} = options;
4646

47-
const defs: string[] = [];
48-
defs.push(`PROCEDURE = ${mOptions.literal(procedure)}`);
47+
const defs: string[] = [`PROCEDURE = ${mOptions.literal(procedure)}`];
4948

5049
if (left) {
5150
defs.push(`LEFTARG = ${mOptions.literal(left)}`);

src/operations/tables/shared.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,12 @@ export function parseReferences(
136136
): string {
137137
const { references, match, onDelete, onUpdate } = options;
138138

139-
const clauses: string[] = [];
140-
141-
clauses.push(
139+
const clauses: string[] = [
142140
typeof references === 'string' &&
143-
(references.startsWith('"') || references.endsWith(')'))
141+
(references.startsWith('"') || references.endsWith(')'))
144142
? `REFERENCES ${references}`
145-
: `REFERENCES ${literal(references)}`
146-
);
143+
: `REFERENCES ${literal(references)}`,
144+
];
147145

148146
if (match) {
149147
clauses.push(`MATCH ${match}`);

0 commit comments

Comments
 (0)