From 6472da9a44e2591096bc40d0515ed668c27ac6ad Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 15 Jan 2024 10:23:49 -0800 Subject: [PATCH] pkg/server: fix staticcheck warnings Co-authored-by: Oleksandr Redko Signed-off-by: Brad Fitzpatrick --- pkg/server/download.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/server/download.go b/pkg/server/download.go index 5f297216f..5cf6ac193 100644 --- a/pkg/server/download.go +++ b/pkg/server/download.go @@ -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 {