mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 17:38:52 +02:00
build: fix errors spotted by ineffassign linter
These were mostly caused by shadowing err and a good fraction of them will have caused errors not to be propagated properly.
This commit is contained in:
@@ -90,7 +90,7 @@ func test(fileName string, flags int, mode string) {
|
||||
_, readExistingErr = f.Read(buf)
|
||||
|
||||
// write some bytes
|
||||
n, writeExistingErr = f.Write([]byte("HEL"))
|
||||
_, writeExistingErr = f.Write([]byte("HEL"))
|
||||
|
||||
// close
|
||||
err = f.Close()
|
||||
|
Reference in New Issue
Block a user