Skip to content

Commit e682065

Browse files
committed
Fix docstring in start-proxy
1 parent fa18cc9 commit e682065

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

lib/start-proxy.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const LANGUAGE_ALIASES: { [lang: string]: KnownLanguage } = {
3535
/**
3636
* Parse the start-proxy language input into its canonical CodeQL language name.
3737
*
38-
* Exported for testing, do not use this outside of the start-proxy Action
39-
* (see the `LANGUAGE_ALIASES` docstring for more info).
38+
* Exported for testing. Do not use this outside of the start-proxy Action
39+
* to avoid complicating the process of adding new CodeQL languages.
4040
*/
4141
export function parseLanguage(language: string): KnownLanguage | undefined {
4242
// Normalize to lower case
@@ -47,8 +47,7 @@ export function parseLanguage(language: string): KnownLanguage | undefined {
4747
return language as KnownLanguage;
4848
}
4949

50-
// Check language aliases, but return the original language name,
51-
// the alias will be resolved later.
50+
// Check language aliases
5251
if (language in LANGUAGE_ALIASES) {
5352
return LANGUAGE_ALIASES[language];
5453
}

0 commit comments

Comments
 (0)