mirror of
https://github.com/restic/restic.git
synced 2025-12-12 08:31:51 +00:00
Fix linter warnings
This commit is contained in:
@@ -79,8 +79,8 @@ func TestListAPI(t *testing.T) {
|
||||
t.Logf("req %v %v, accept: %v", req.Method, req.URL.Path, req.Header["Accept"])
|
||||
|
||||
var err error
|
||||
switch {
|
||||
case req.Method == "GET":
|
||||
switch req.Method {
|
||||
case "GET":
|
||||
// list files in data/
|
||||
res.Header().Set("Content-Type", test.ContentType)
|
||||
_, err = res.Write([]byte(test.Data))
|
||||
@@ -89,7 +89,7 @@ func TestListAPI(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return
|
||||
case req.Method == "HEAD":
|
||||
case "HEAD":
|
||||
// stat file in data/, use the first two bytes in the name
|
||||
// of the file as the size :)
|
||||
filename := req.URL.Path[6:]
|
||||
|
||||
Reference in New Issue
Block a user