Skip to content

Commit 890df91

Browse files
committed
chore: use getRegistry helper
1 parent ce09250 commit 890df91

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: pkg/build/build.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ func (b *Build) LoadUsingRegistry() bool {
103103
return false
104104
}
105105

106-
return b.Response.Msg.Registry.LoadUsingRegistry
106+
registry := b.Response.Msg.GetRegistry()
107+
if registry == nil {
108+
return false
109+
}
110+
111+
return registry.LoadUsingRegistry
107112
}
108113

109114
func NewBuild(ctx context.Context, req *cliv1.CreateBuildRequest, token string) (Build, error) {

0 commit comments

Comments
 (0)