Fix err shadowing in gcs driver
Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
This commit is contained in:
parent
303f1899bb
commit
cdb4ba947a
@ -426,7 +426,8 @@ func putContentsClose(wc *storage.Writer, contents []byte) error {
|
|||||||
var nn int
|
var nn int
|
||||||
var err error
|
var err error
|
||||||
for nn < size {
|
for nn < size {
|
||||||
n, err := wc.Write(contents[nn:size])
|
var n int
|
||||||
|
n, err = wc.Write(contents[nn:size])
|
||||||
nn += n
|
nn += n
|
||||||
if err != nil {
|
if err != nil {
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user