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