Skip to content

Commit be7b42d

Browse files
committed
Simplify ColumnMapping constructor
1 parent f218190 commit be7b42d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

website/src/components/Submission/FileUpload/ColumnMapping.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import type { InputField } from '../../../types/config';
33
import stringSimilarity from '../../../utils/stringSimilarity';
44

55
export class ColumnMapping {
6-
private readonly map: ReadonlyMap<string, string | null>;
7-
8-
private constructor(map: ReadonlyMap<string, string | null>) {
9-
this.map = map;
10-
}
6+
private constructor(private readonly map: ReadonlyMap<string, string | null>) {}
117

128
private static getBestMatchingTargetColumn(sourceColumn: string, inputFields: InputField[]): string | null {
139
const [bestMatch, score] = inputFields

0 commit comments

Comments
 (0)