From 0ebfa231d21b255d84cfdb8a618cfe397db6c497 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 15 Sep 2009 09:41:59 -0700 Subject: more "declared and not used". the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638 --- src/pkg/io/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/io/utils.go') diff --git a/src/pkg/io/utils.go b/src/pkg/io/utils.go index 45dd5f9a4..4230b031c 100644 --- a/src/pkg/io/utils.go +++ b/src/pkg/io/utils.go @@ -14,7 +14,7 @@ import ( // ReadAll reads from r until an error or EOF and returns the data it read. func ReadAll(r Reader) ([]byte, os.Error) { var buf bytes.Buffer; - n, err := Copy(r, &buf); + _, err := Copy(r, &buf); return buf.Data(), err; } -- cgit v1.2.3