Chore: make ESLint Happy

This commit is contained in:
SukkaW
2024-10-10 21:40:54 +08:00
parent 40cda6997a
commit e40979e50e
31 changed files with 228 additions and 220 deletions

View File

@@ -1,4 +1,4 @@
export const processLine = (line: string): string | null => {
export function processLine(line: string): string | null {
if (!line) {
return null;
}
@@ -22,9 +22,9 @@ export const processLine = (line: string): string | null => {
}
return trimmed;
};
}
export const processLineFromReadline = async (rl: AsyncIterable<string>): Promise<string[]> => {
export async function processLineFromReadline(rl: AsyncIterable<string>): Promise<string[]> {
const res: string[] = [];
for await (const line of rl) {
const l: string | null = processLine(line);
@@ -33,4 +33,4 @@ export const processLineFromReadline = async (rl: AsyncIterable<string>): Promis
}
}
return res;
};
}