Skip to content

Commit 54c5dcd

Browse files
committed
Move comment to avoid very long lines
1 parent c043980 commit 54c5dcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/formatAliasPositions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ export default function formatAliasPositions(query: string): string {
4040
};
4141
});
4242

43+
// get longest of precedingText, trim trailing comma for non-alias columns
4344
const aliasMaxLength = maxLength(
44-
splitLines.map(({ precedingText }) => precedingText.replace(/\s*,\s*$/, '')) // get longest of precedingText, trim trailing comma for non-alias columns
45+
splitLines.map(({ precedingText }) => precedingText.replace(/\s*,\s*$/, ''))
4546
);
4647
// re-construct line, aligning by inserting space before AS or alias
4748
aliasLines = splitLines.map(

0 commit comments

Comments
 (0)