mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:18:31 +02:00
refactor: move task, error and testing utils to separte repo; apply gofumpt
This commit is contained in:
@@ -67,7 +67,7 @@ func getSchemePortByImageName(imageName string) (scheme string, port int, ok boo
|
||||
if port, ok := ImageNamePortMapTCP[imageName]; ok {
|
||||
return "tcp", port, true
|
||||
}
|
||||
return
|
||||
return scheme, port, ok
|
||||
}
|
||||
|
||||
func getSchemePortByAlias(alias string) (scheme string, port int, ok bool) {
|
||||
@@ -77,5 +77,5 @@ func getSchemePortByAlias(alias string) (scheme string, port int, ok bool) {
|
||||
if port, ok := AliasPortMapHTTPS[alias]; ok {
|
||||
return "https", port, true
|
||||
}
|
||||
return
|
||||
return scheme, port, ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user