Skip to content

Commit

Permalink
fix: if parent image cannot be resolved, panic is caused (#30)
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
jeffmaury authored Nov 30, 2023
1 parent 4dbe932 commit 1ea1599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/command/from.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (f From) Analyze(ctx context.Context, node *parser.Node, source utils.Sourc
decompiledNode, err := decompiler.Decompile(node.Value)
if err != nil {
// unable to decompile base image
ctx = context.WithValue(ctx, fromResultKey, []Result{
return context.WithValue(ctx, fromResultKey, []Result{
Result{
Name: "Analyze error",
Status: StatusFailed,
Expand Down

0 comments on commit 1ea1599

Please sign in to comment.