Skip to content

Commit 7e3c4c7

Browse files
committed
Simplify getDisplayActionName
1 parent f4cef26 commit 7e3c4c7

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎lib/entry-points.js‎

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

‎src/status-report.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ export const ACTION_DISPLAY_NAMES: Partial<Record<ActionName, string>> = {
7474
export function getDisplayActionName(actionName: ActionName): string {
7575
const displayName = ACTION_DISPLAY_NAMES[actionName];
7676

77-
if (displayName !== undefined) {
78-
return displayName;
79-
}
80-
return actionName;
77+
return displayName ?? actionName;
8178
}
8279

8380
/**

0 commit comments

Comments
 (0)