Skip to content

Commit bd1db71

Browse files
committed
clean up
1 parent d39939c commit bd1db71

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Extension/src/LanguageServer/settings.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,14 +1101,14 @@ export class OtherSettings {
11011101
}
11021102

11031103
export function hasFileAssociation(fileName: string): boolean {
1104-
const associations: Associations = new OtherSettings().filesAssociations;
1104+
const otherSettings: OtherSettings = new OtherSettings()
1105+
const associations: Associations = otherSettings.filesAssociations;
11051106
if (associations[fileName]) {
11061107
return true;
1107-
} else {
1108-
for (const pattern in associations) {
1109-
if (pattern.startsWith('*.') && fileName.endsWith(pattern.slice(1))) {
1110-
return true;
1111-
}
1108+
}
1109+
for (const pattern in associations) {
1110+
if (pattern.startsWith('*.') && fileName.endsWith(pattern.slice(1))) {
1111+
return true;
11121112
}
11131113
}
11141114
return false;

0 commit comments

Comments
 (0)