Skip to content

Commit

Permalink
Simplify ColumnMapping constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Jan 17, 2025
1 parent f218190 commit be7b42d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import type { InputField } from '../../../types/config';
import stringSimilarity from '../../../utils/stringSimilarity';

export class ColumnMapping {
private readonly map: ReadonlyMap<string, string | null>;

private constructor(map: ReadonlyMap<string, string | null>) {
this.map = map;
}
private constructor(private readonly map: ReadonlyMap<string, string | null>) {}

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

0 comments on commit be7b42d

Please sign in to comment.