mirror of
https://github.com/rclone/rclone.git
synced 2025-07-08 00:07:16 +02:00
build: fix linting issues reported by golangci-lint on windows
This commit is contained in:
@ -34,7 +34,11 @@ func TestMkdirAll(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("create %q: %s", fpath, err)
|
||||
}
|
||||
defer f.Close()
|
||||
defer func() {
|
||||
if err := f.Close(); err != nil {
|
||||
t.Fatalf("Close %q: %s", fpath, err)
|
||||
}
|
||||
}()
|
||||
|
||||
// Can't make directory named after file.
|
||||
err = MkdirAll(fpath, 0777)
|
||||
|
Reference in New Issue
Block a user