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:
Brad Fitzpatrick 2024-01-15 10:23:49 -08:00
parent 70f15cb755
commit 6472da9a44
1 changed files with 3 additions and 3 deletions

View File

@ -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 {