Fixing linter issues

This commit is contained in:
Julien Neuhart
2020-06-08 10:44:46 +02:00
parent 0b86d38517
commit 89ac13e805
12 changed files with 28 additions and 24 deletions

View File

@@ -106,7 +106,7 @@ func (ctx *Context) WithResource(directoryName string) error {
if err != nil {
return r, err
}
defer in.Close() // nolint: errcheck
defer in.Close()
// avoid directory traversal.
filename := filepath.Base(fh.Filename)
if err := r.WithFile(filename, in); err != nil {