From 7d10e3954033a1139a821c218961447c0730e0ea Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Sun, 24 Jul 2016 08:49:22 -0700 Subject: [PATCH] fix redundant file open/close --- out_command.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/out_command.go b/out_command.go index f0943db..f74a59c 100644 --- a/out_command.go +++ b/out_command.go @@ -153,13 +153,6 @@ func (c *OutCommand) fileContents(path string) (string, error) { } func (c *OutCommand) upload(release *github.RepositoryRelease, filePath string) error { - file, err := os.Open(filePath) - if err != nil { - return err - } - - defer file.Close() - fmt.Fprintf(c.writer, "uploading %s\n", filePath) name := filepath.Base(filePath)