mirror of
https://github.com/distribution/distribution.git
synced 2025-09-09 02:40:00 +00:00
Update to fix lint errors
Context should use type values instead of strings. Updated direct calls to WithValue, but still other uses of string keys. Update Acl to ACL in s3 driver. Cherry-picked to release/2.5 branch Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan) Signed-off-by: Misty Stanley-Jones <misty@docker.com>
This commit is contained in:
committed by
Misty Stanley-Jones
parent
12acdf0a6c
commit
0a22649f66
@@ -284,7 +284,7 @@ func TestAccessController(t *testing.T) {
|
||||
Action: "baz",
|
||||
}
|
||||
|
||||
ctx := context.WithValue(nil, "http.request", req)
|
||||
ctx := context.WithRequest(context.Background(), req)
|
||||
authCtx, err := accessController.Authorized(ctx, testAccess)
|
||||
challenge, ok := err.(auth.Challenge)
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user