1
0

Fix missing error check

This commit is contained in:
dump_stack() 2023-05-11 20:45:53 +00:00
parent 9c563ca68b
commit e123bf258c
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -37,6 +37,9 @@ func GetDebianKernel(version string) (dk DebianKernel, err error) {
regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$`
packages, err := snapshot.Packages("linux", version, "amd64", regex)
if err != nil {
return
}
if len(packages) == 0 {
err = ErrNoBinaryPackages
return