Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jan 5, 2023
1 parent 647b3c1 commit ff1202a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/shared/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ export function syntaxToLanguageId(syntax: string) {
return syntax;
}

export function languageIdToSyntax(languageId: string) {
switch (languageId) {
case 'javascript': return 'js';
case 'typescript': return 'ts';
case 'javascriptreact': return 'jsx';
case 'typescriptreact': return 'tsx';
case 'jade': return 'pug';
case 'markdown': return 'md';
}
return languageId;
}

export function notEmpty<T>(value: T | null | undefined): value is T {
return value !== null && value !== undefined;
}

0 comments on commit ff1202a

Please sign in to comment.