From 8949b53ccc8a5fb7301fd21653cbefa504b204f3 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 15 May 2023 18:17:31 +0000 Subject: [PATCH] fix: return after found --- distro/debian/kernel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index 0ff40cc..98e91af 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -145,6 +145,7 @@ func GetCachedKernel(deb string) (dk DebianKernel, err error) { if deb == tmpdk.Image.Deb.Name { dk = tmpdk + return } for _, h := range tmpdk.Headers {