From e6855829c4df2861e779adcccbb422e7c0830afd Mon Sep 17 00:00:00 2001 From: Joshua Sjoding Date: Sat, 27 Feb 2016 00:36:27 -0800 Subject: Renamed internal close function to checkClose * Old name accidentally shadowed builtin close function --- commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commit.go') diff --git a/commit.go b/commit.go index 4b7d918..e96ae5d 100644 --- a/commit.go +++ b/commit.go @@ -61,7 +61,7 @@ func (c *Commit) Decode(o core.Object) (err error) { if err != nil { return err } - defer close(reader, &err) + defer checkClose(reader, &err) r := bufio.NewReader(reader) -- cgit