From 4a2485fcc9ff32bb22b2e487e50ce98c1b194207 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Wed, 5 Mar 2025 11:51:59 +0100 Subject: [PATCH] add a comment to findFiles --- libs/patchwheel/patch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/patchwheel/patch.go b/libs/patchwheel/patch.go index ccf946cbd..a05e72be5 100644 --- a/libs/patchwheel/patch.go +++ b/libs/patchwheel/patch.go @@ -23,6 +23,9 @@ const ( nameKey = "Name:" ) +// findFiles returns a slice with a *zip.File for every filename in the arguments slice. +// The order of the return value matches the order of the arguments. +// If not found, the corresponding entry is nil. func findFiles(r *zip.ReadCloser, files ...string) []*zip.File { found := 0 result := make([]*zip.File, len(files))