mirror of
https://github.com/mudler/luet.git
synced 2025-09-04 08:45:40 +00:00
Drop unused condition
This commit is contained in:
@@ -598,9 +598,6 @@ func (cs *LuetCompiler) compile(concurrency int, keepPermissions bool, p Compila
|
|||||||
if compileSpec.GetImage() != "" {
|
if compileSpec.GetImage() != "" {
|
||||||
// TODO: Refactor this
|
// TODO: Refactor this
|
||||||
if compileSpec.ImageUnpack() { // If it is just an entire image, create a package from it
|
if compileSpec.ImageUnpack() { // If it is just an entire image, create a package from it
|
||||||
if compileSpec.GetImage() == "" {
|
|
||||||
return nil, errors.New("No image defined for package: " + assertion.Package.HumanReadableString())
|
|
||||||
}
|
|
||||||
Info(pkgTag, ":whale: Sourcing package from image", compileSpec.GetImage())
|
Info(pkgTag, ":whale: Sourcing package from image", compileSpec.GetImage())
|
||||||
artifact, err := cs.packageFromImage(compileSpec, currentPackageImageHash, keepPermissions, cs.KeepImg, concurrency)
|
artifact, err := cs.packageFromImage(compileSpec, currentPackageImageHash, keepPermissions, cs.KeepImg, concurrency)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user