Fix missing error check
This commit is contained in:
parent
9c563ca68b
commit
e123bf258c
@ -37,6 +37,9 @@ func GetDebianKernel(version string) (dk DebianKernel, err error) {
|
|||||||
regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$`
|
regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$`
|
||||||
|
|
||||||
packages, err := snapshot.Packages("linux", version, "amd64", regex)
|
packages, err := snapshot.Packages("linux", version, "amd64", regex)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
if len(packages) == 0 {
|
if len(packages) == 0 {
|
||||||
err = ErrNoBinaryPackages
|
err = ErrNoBinaryPackages
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user