Must return after found one supported kernel
This commit is contained in:
parent
46122397b5
commit
e1a3de5d05
4
main.go
4
main.go
@ -75,6 +75,10 @@ func (ka artifact) checkSupport(ki kernelInfo, km kernelMask) (
|
|||||||
func (ka artifact) Supported(ki kernelInfo) (supported bool, err error) {
|
func (ka artifact) Supported(ki kernelInfo) (supported bool, err error) {
|
||||||
for _, km := range ka.SupportedKernels {
|
for _, km := range ka.SupportedKernels {
|
||||||
supported, err = ka.checkSupport(ki, km)
|
supported, err = ka.checkSupport(ki, km)
|
||||||
|
if supported {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user