removed duplicate code

Signed-off-by: npiyush97 <npiyush35@gmail.com>
This commit is contained in:
npiyush97
2023-12-18 17:18:36 +05:30
parent cb6a65e380
commit cb4928f94b
@@ -129,15 +129,6 @@ export const enableBranchProtectionOnDefaultRepoBranch = async ({
}
};
export function getGitCommitMessage(
gitCommitMessage: string | undefined,
config: Config,
): string | undefined {
return gitCommitMessage
? gitCommitMessage
: config.getOptionalString('scaffolder.defaultCommitMessage');
}
export function entityRefToName(name: string): string {
return name.replace(/^.*[:/]/g, '');
}