Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jul 24, 2024
1 parent 392b0e8 commit cafa3d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/resource/infrastructure_stack_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cafa3d4

Please sign in to comment.