aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index d455149c..6b914edc 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -1134,10 +1134,12 @@ func (ctx *evalContext) pf(
}
default:
- panic(azalea.TypeError{
- Concrete: reflect.TypeOf(sourceA),
- Asserted: reflect.TypeFor[pkg.Artifact](),
- })
+ if sourceA != nil {
+ panic(azalea.TypeError{
+ Concrete: reflect.TypeOf(sourceA),
+ Asserted: reflect.TypeFor[pkg.Artifact](),
+ })
+ }
}
v = cachedArtifact{&meta, ctx.t.NewPackage(