Skip to content

Commit

Permalink
refactor: Using req in a pure functionnal way
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Aug 13, 2021
1 parent 8a03b20 commit 8a798d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (a App) LatestVersions(repository string, patterns []string) (map[string]se
req := request.New().Get(url)

if len(auth) != 0 {
req.Header("Authorization", auth)
req = req.Header("Authorization", auth)
}

resp, err := req.Send(ctx, nil)
Expand Down

0 comments on commit 8a798d4

Please sign in to comment.