Skip to content

Commit

Permalink
Fix minor "Challanges" typo
Browse files Browse the repository at this point in the history
Signed-off-by: Tianon Gravi <[email protected]>
  • Loading branch information
tianon committed Mar 1, 2018
1 parent 6fca8d6 commit f280589
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions registry/client/auth/challenge/authchallenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ type Manager interface {
// to a backend.
func NewSimpleManager() Manager {
return &simpleManager{
Challanges: make(map[string][]Challenge),
Challenges: make(map[string][]Challenge),
}
}

type simpleManager struct {
sync.RWMutex
Challanges map[string][]Challenge
Challenges map[string][]Challenge
}

func normalizeURL(endpoint *url.URL) {
Expand All @@ -64,7 +64,7 @@ func (m *simpleManager) GetChallenges(endpoint url.URL) ([]Challenge, error) {

m.RLock()
defer m.RUnlock()
challenges := m.Challanges[endpoint.String()]
challenges := m.Challenges[endpoint.String()]
return challenges, nil
}

Expand All @@ -82,7 +82,7 @@ func (m *simpleManager) AddResponse(resp *http.Response) error {

m.Lock()
defer m.Unlock()
m.Challanges[urlCopy.String()] = challenges
m.Challenges[urlCopy.String()] = challenges
return nil
}

Expand Down

0 comments on commit f280589

Please sign in to comment.