Fix err shadowing in gcs driver
@@ -426,7 +426,8 @@ func putContentsClose(wc *storage.Writer, contents []byte) error {
var nn int
var err error
for nn < size {
- n, err := wc.Write(contents[nn:size])
+ var n int
+ n, err = wc.Write(contents[nn:size])
nn += n
if err != nil {
break
