mirror of
https://github.com/grdl/git-get.git
synced 2026-02-05 03:49:42 +00:00
Fix issues found by godot linter
This commit is contained in:
@@ -89,7 +89,7 @@ func normalizeURL(url *urlpkg.URL, defaultHost string, defaultScheme string) {
|
||||
// Eg, ssh://git@github.com:22/~user/repo.git => github.com/user/repo
|
||||
//
|
||||
// If skipHost is true, it removes the host part from the path.
|
||||
// Eg, ssh://git@github.com:22/~user/repo.git => user/repo
|
||||
// Eg, ssh://git@github.com:22/~user/repo.git => user/repo.
|
||||
func URLToPath(url urlpkg.URL, skipHost bool) string {
|
||||
// Remove port numbers from host.
|
||||
url.Host = strings.Split(url.Host, ":")[0]
|
||||
|
||||
Reference in New Issue
Block a user