diff --git a/backend/walk.go b/backend/walk.go index bd6ed17..c66d967 100644 --- a/backend/walk.go +++ b/backend/walk.go @@ -172,7 +172,7 @@ func Walk(fileSystem fs.FS, prefix, delimiter, marker string, max int, dirchk Di // Note: No obects are included past the common prefix since // these are all rolled up into the common prefix. // Note: The delimeter can be anything, so we have to operate on - // the full path without any assumptions on posix directory heirarchy + // the full path without any assumptions on posix directory hierarchy // here. Usually the delimeter will be "/", but thats not required. suffix := strings.TrimPrefix(path, prefix) before, _, found := strings.Cut(suffix, delimiter) diff --git a/s3api/controllers/base_test.go b/s3api/controllers/base_test.go index 898ecfb..e88f608 100644 --- a/s3api/controllers/base_test.go +++ b/s3api/controllers/base_test.go @@ -1012,13 +1012,13 @@ func Test_XMLresponse(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := SendXMLResponse(tt.args.ctx, tt.args.resp, tt.args.err); (err != nil) != tt.wantErr { - t.Errorf("responce() %v error = %v, wantErr %v", tt.name, err, tt.wantErr) + t.Errorf("response() %v error = %v, wantErr %v", tt.name, err, tt.wantErr) } statusCode := tt.args.ctx.Response().StatusCode() if statusCode != tt.statusCode { - t.Errorf("responce() %v code = %v, wantErr %v", tt.name, statusCode, tt.wantErr) + t.Errorf("response() %v code = %v, wantErr %v", tt.name, statusCode, tt.wantErr) } }) } @@ -1072,13 +1072,13 @@ func Test_response(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := SendResponse(tt.args.ctx, tt.args.err); (err != nil) != tt.wantErr { - t.Errorf("responce() %v error = %v, wantErr %v", tt.name, err, tt.wantErr) + t.Errorf("response() %v error = %v, wantErr %v", tt.name, err, tt.wantErr) } statusCode := tt.args.ctx.Response().StatusCode() if statusCode != tt.statusCode { - t.Errorf("responce() %v code = %v, wantErr %v", tt.name, statusCode, tt.wantErr) + t.Errorf("response() %v code = %v, wantErr %v", tt.name, statusCode, tt.wantErr) } }) }