Skip to content

Commit 343d223

Browse files
committed
chore: removed unused code
1 parent 8ca0002 commit 343d223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Common.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export function getWebhookEventsForEventId(eventId: string | number) {
520520
*/
521521
export const getGitBranchUrl = (gitUrl: string, branchName: string): string | null => {
522522
if (!gitUrl) return null
523-
const trimmedGitUrl = gitUrl.trim()?.replace(/\.git$/, '').replace(/\/$/, '') // Remove any trailing slash
523+
const trimmedGitUrl = gitUrl.trim().replace(/\.git$/, '').replace(/\/$/, '') // Remove any trailing slash
524524
if (trimmedGitUrl.includes(GitProviderType.GITLAB)) return `${trimmedGitUrl}/-/tree/${branchName}`
525525
else if (trimmedGitUrl.includes(GitProviderType.GITHUB)) return `${trimmedGitUrl}/tree/${branchName}`
526526
else if (trimmedGitUrl.includes(GitProviderType.BITBUCKET)) return `${trimmedGitUrl}/branch/${branchName}`

0 commit comments

Comments
 (0)