Skip to content

Commit 21422e9

Browse files
fmt and swagger
1 parent 2830c5f commit 21422e9

File tree

2 files changed

+151
-3
lines changed

2 files changed

+151
-3
lines changed

modules/git/remote.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ func IsRemoteNotExistError(err error) bool {
9191

9292
// normalizeSSHURL converts SSH-SCP format URLs to standard ssh:// format for security
9393
func normalizeSSHURL(remoteAddr string) (string, error) {
94-
if strings.HasPrefix(remoteAddr, "ssh://") {
95-
return remoteAddr, nil
96-
}
94+
if strings.HasPrefix(remoteAddr, "ssh://") {
95+
return remoteAddr, nil
96+
}
9797
if strings.Contains(remoteAddr, "://") {
9898
return remoteAddr, errors.New("remoteAddr has a scheme")
9999
}

templates/swagger/v1_json.tmpl

Lines changed: 148 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)