Drop useless else block
This commit is contained in:
parent
0b6ae6a23c
commit
1dace23475
@ -84,11 +84,11 @@ func generateBaseDockerImage(sk config.KernelMask) (err error) {
|
|||||||
log.Printf("Base image for %s:%s found",
|
log.Printf("Base image for %s:%s found",
|
||||||
sk.DistroType.String(), sk.DistroRelease)
|
sk.DistroType.String(), sk.DistroRelease)
|
||||||
return
|
return
|
||||||
} else {
|
}
|
||||||
|
|
||||||
log.Printf("Base image for %s:%s not found, start generating",
|
log.Printf("Base image for %s:%s not found, start generating",
|
||||||
sk.DistroType.String(), sk.DistroRelease)
|
sk.DistroType.String(), sk.DistroRelease)
|
||||||
os.MkdirAll(imagePath, os.ModePerm)
|
os.MkdirAll(imagePath, os.ModePerm)
|
||||||
}
|
|
||||||
|
|
||||||
d += fmt.Sprintf("FROM %s:%s\n",
|
d += fmt.Sprintf("FROM %s:%s\n",
|
||||||
strings.ToLower(sk.DistroType.String()),
|
strings.ToLower(sk.DistroType.String()),
|
||||||
|
Loading…
Reference in New Issue
Block a user