refactor: rename parameter
This commit is contained in:
parent
b631767d98
commit
a646e9cf33
@ -165,20 +165,20 @@ type Artifact struct {
|
|||||||
Preload []PreloadModule
|
Preload []PreloadModule
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ka Artifact) checkSupport(ki distro.KernelInfo, km Target) (
|
func (ka Artifact) checkSupport(ki distro.KernelInfo, target Target) (
|
||||||
supported bool, err error) {
|
supported bool, err error) {
|
||||||
|
|
||||||
if km.Distro.Release == "" {
|
if target.Distro.Release == "" {
|
||||||
if ki.Distro.ID != km.Distro.ID {
|
if ki.Distro.ID != target.Distro.ID {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !ki.Distro.Equal(km.Distro) {
|
if !ki.Distro.Equal(target.Distro) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
supported, err = regexp.MatchString(km.Kernel.Regex, ki.KernelRelease)
|
supported, err = regexp.MatchString(target.Kernel.Regex, ki.KernelRelease)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user