mirror of
https://github.com/restic/restic.git
synced 2025-10-09 18:02:28 +00:00
Don't shadow builtins
This commit is contained in:
@@ -93,12 +93,12 @@ func TestListAPI(t *testing.T) {
|
||||
// stat file in data/, use the first two bytes in the name
|
||||
// of the file as the size :)
|
||||
filename := req.URL.Path[6:]
|
||||
len, err := strconv.ParseInt(filename[:4], 16, 64)
|
||||
length, err := strconv.ParseInt(filename[:4], 16, 64)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
res.Header().Set("Content-Length", fmt.Sprintf("%d", len))
|
||||
res.Header().Set("Content-Length", fmt.Sprintf("%d", length))
|
||||
res.WriteHeader(http.StatusOK)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user