Browse Source

Merge pull request #1982 from modcloth-labs/spelling-fix-for-the-word-protocol

Minor spelling correction of protocoll -> protocol
Victor Vieux 11 years ago
parent
commit
7447867edd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      auth/auth.go

+ 3 - 3
auth/auth.go

@@ -239,7 +239,7 @@ func (config *ConfigFile) ResolveAuthConfig(registry string) AuthConfig {
 	// as there is only one auth entry which is fully qualified we need to start
 	// as there is only one auth entry which is fully qualified we need to start
 	// parsing and matching
 	// parsing and matching
 
 
-	swapProtocoll := func(url string) string {
+	swapProtocol := func(url string) string {
 		if strings.HasPrefix(url, "http:") {
 		if strings.HasPrefix(url, "http:") {
 			return strings.Replace(url, "http:", "https:", 1)
 			return strings.Replace(url, "http:", "https:", 1)
 		}
 		}
@@ -253,9 +253,9 @@ func (config *ConfigFile) ResolveAuthConfig(registry string) AuthConfig {
 		if c, found := config.Configs[url]; found {
 		if c, found := config.Configs[url]; found {
 			return c
 			return c
 		}
 		}
-		registrySwappedProtocoll := swapProtocoll(url)
+		registrySwappedProtocol := swapProtocol(url)
 		// now try to match with the different protocol
 		// now try to match with the different protocol
-		if c, found := config.Configs[registrySwappedProtocoll]; found {
+		if c, found := config.Configs[registrySwappedProtocol]; found {
 			return c
 			return c
 		}
 		}
 		return AuthConfig{}
 		return AuthConfig{}