Skip to content

Commit 740e4a9

Browse files
committed
Clean up middleware
1 parent 4e45886 commit 740e4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares/simpleParserMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const parseData = <T>(value: string, columns: ColumnsType<T>, delimiter: Delimit
2020
const lines = value.split('\n');
2121
return lines.map((line) => {
2222
const lineValues = line.split(delimiter);
23-
const parsedLine: T = {} as T;
23+
const parsedLine = {} as T;
2424
columns.forEach((column, columnIndex) => {
2525
parsedLine[column.key] = (lineValues[columnIndex] as unknown) as T[keyof T];
2626
});

0 commit comments

Comments
 (0)