Skip to content

Commit

Permalink
fix: Seemingly unrelated test
Browse files Browse the repository at this point in the history
  • Loading branch information
munen committed Jun 20, 2022
1 parent c225291 commit c948643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sync_backend_clients/gitlab_sync_backend_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export const createGitlabOAuth = () => {
* parsing succeeded, otherwise undefined.
*/
export const gitLabProjectIdFromURL = (projectURL) => {
if (!projectURL) return;

if (!projectURL.includes('://')) {
// URL() class requires protocol.
projectURL = `https://${projectURL}`;
Expand Down

0 comments on commit c948643

Please sign in to comment.