From 9e463b4614348b3ddc04b1fedd5d662845ce0fb9 Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 27 May 2018 11:25:55 +0800 Subject: - Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()` - go test has been updated --- lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.go') diff --git a/lib.go b/lib.go index a168781..fc95b23 100644 --- a/lib.go +++ b/lib.go @@ -50,7 +50,7 @@ func readFile(file *zip.File) []byte { log.Fatal(err) } buff := bytes.NewBuffer(nil) - io.Copy(buff, rc) + _, _ = io.Copy(buff, rc) rc.Close() return buff.Bytes() } -- cgit v1.2.1