fix: wrong url instantiation
Signed-off-by: Matthew Bednarski <bednarski@walter-group.com>
This commit is contained in:
committed by
Matthew Bednarski
parent
66a6b4579c
commit
f543632988
+1
-1
@@ -238,7 +238,7 @@ const getDefaultBranch = async (opts: {
|
||||
return defaultBranch;
|
||||
};
|
||||
const parseProtocol = (apiBaseUrl: string) => {
|
||||
const url = new Url(apiBaseUrl);
|
||||
const url = new URL(apiBaseUrl);
|
||||
return url.protocol || 'https';
|
||||
};
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user