mirror of
https://github.com/github/codeql-action.git
synced 2026-11-06 13:09:45 +00:00
Simplify getDisplayActionName
This commit is contained in:
@@ -74,10 +74,7 @@ export const ACTION_DISPLAY_NAMES: Partial<Record<ActionName, string>> = {
|
||||
export function getDisplayActionName(actionName: ActionName): string {
|
||||
const displayName = ACTION_DISPLAY_NAMES[actionName];
|
||||
|
||||
if (displayName !== undefined) {
|
||||
return displayName;
|
||||
}
|
||||
return actionName;
|
||||
return displayName ?? actionName;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user