Eliminate ineffectual assignments

Most of these were fixed by handling errors that were previously
unhandled (oops).
This commit is contained in:
Matthew Holt
2016-09-05 10:30:46 -06:00
parent 45a3d0b526
commit 5f135a27d5
5 changed files with 16 additions and 7 deletions

View File

@ -546,6 +546,9 @@ func (c *FCGIClient) PostFile(p map[string]string, data url.Values, file map[str
return nil, e
}
_, err = io.Copy(part, fd)
if err != nil {
return
}
}
err = writer.Close()