mirror of https://github.com/perkeep/perkeep.git
pkg/server: fix staticcheck warnings
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com> Signed-off-by: Brad Fitzpatrick <brad@danga.com>
This commit is contained in:
parent
70f15cb755
commit
6472da9a44
|
@ -594,10 +594,10 @@ func (dh *DownloadHandler) zipFile(ctx context.Context, parentPath string, br bl
|
|||
filename = filepath.Join(parentPath, fi.name)
|
||||
}
|
||||
zh := &zip.FileHeader{
|
||||
Name: filename,
|
||||
Method: zip.Store,
|
||||
Name: filename,
|
||||
Method: zip.Store,
|
||||
Modified: fi.modtime.UTC(),
|
||||
}
|
||||
zh.SetModTime(fi.modtime)
|
||||
zh.SetMode(fi.mode)
|
||||
zfh, err := zw.CreateHeader(zh)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue