fix: return after found
This commit is contained in:
parent
4ea7fbfbf9
commit
8949b53ccc
@ -145,6 +145,7 @@ func GetCachedKernel(deb string) (dk DebianKernel, err error) {
|
|||||||
|
|
||||||
if deb == tmpdk.Image.Deb.Name {
|
if deb == tmpdk.Image.Deb.Name {
|
||||||
dk = tmpdk
|
dk = tmpdk
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, h := range tmpdk.Headers {
|
for _, h := range tmpdk.Headers {
|
||||||
|
Loading…
Reference in New Issue
Block a user