From cafa3d40964373203839ab54e5139d51ea4741ce Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Wed, 24 Jul 2024 15:17:20 +0200 Subject: [PATCH] minor fix --- internal/resource/infrastructure_stack_model.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/resource/infrastructure_stack_model.go b/internal/resource/infrastructure_stack_model.go index e19c286..f053a62 100644 --- a/internal/resource/infrastructure_stack_model.go +++ b/internal/resource/infrastructure_stack_model.go @@ -168,14 +168,13 @@ func (isr *InfrastructureStackRepository) Attributes() gqlclient.GitRefAttribute } func (isr *InfrastructureStackRepository) From(repository *gqlclient.GitRepositoryFragment, ref gqlclient.GitRefFragment) { - isr.Ref = types.StringValue(ref.Ref) - isr.Folder = types.StringValue(ref.Folder) - if isr == nil { return } isr.Id = types.StringValue(repository.ID) + isr.Ref = types.StringValue(ref.Ref) + isr.Folder = types.StringValue(ref.Folder) } type InfrastructureStackHookSpec struct {