Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <[email protected]>
  • Loading branch information
tsmaeder committed Nov 22, 2023
1 parent 8dcc958 commit a49d731
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
16 changes: 7 additions & 9 deletions packages/plugin-ext/src/plugin/languages-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ export function serializeIndentation(indentationRules?: theia.IndentationRule):

export function serializeAutoClosingPairs(pairs: theia.AutoClosingPair[] | undefined): SerializedAutoClosingPair[] | undefined {
if (!pairs) {
return undefined
return undefined;
};
return pairs.map(pair => {
return {
open: pair.open,
close: pair.close,
notIn: pair.notIn ? pair.notIn.map(tokenType => SyntaxTokenType.toString(tokenType)) : undefined
}
});
}
return pairs.map(pair => ({
open: pair.open,
close: pair.close,
notIn: pair.notIn ? pair.notIn.map(tokenType => SyntaxTokenType.toString(tokenType)) : undefined
}));
}
1 change: 0 additions & 1 deletion packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,6 @@ export enum SyntaxTokenType {
RegEx = 3
}


@es5ClassCompat
export class TextEdit {

Expand Down

0 comments on commit a49d731

Please sign in to comment.