fmt and swagger

This commit is contained in:
techknowlogick
2025-07-15 17:42:20 -04:00
parent 2830c5f897
commit 21422e9af6
2 changed files with 151 additions and 3 deletions
+3 -3
View File
@@ -91,9 +91,9 @@ func IsRemoteNotExistError(err error) bool {
// normalizeSSHURL converts SSH-SCP format URLs to standard ssh:// format for security
func normalizeSSHURL(remoteAddr string) (string, error) {
if strings.HasPrefix(remoteAddr, "ssh://") {
return remoteAddr, nil
}
if strings.HasPrefix(remoteAddr, "ssh://") {
return remoteAddr, nil
}
if strings.Contains(remoteAddr, "://") {
return remoteAddr, errors.New("remoteAddr has a scheme")
}