Skip to content
Snippets Groups Projects
Commit 113b4ae6 authored by vito.he's avatar vito.he
Browse files

Add: add a comment in registry_config

parent e788a2d1
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,8 @@ func loadRegistries(targetRegistries string, registries map[string]*RegistryConf
target := false
// if user not config targetRegistries,default load all
// Notice:If s does not contain sep and sep is not empty, SplitAfter returns a slice of length 1 whose only element is s.
// Notice:in func "func Split(s, sep string) []string" comment : if s does not contain sep and sep is not empty, SplitAfter returns a slice of length 1 whose only element is s.
// So we have to add the condition when targetRegistries string is not set (it will be "" when not set)
if len(trSlice) == 0 || (len(trSlice) == 1 && trSlice[0] == "") {
target = true
} else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment