Skip to content

Commit

Permalink
fix: add check for empty string (#1277)
Browse files Browse the repository at this point in the history
Signed-off-by: bryans-go <[email protected]>
  • Loading branch information
divanshu-go authored Oct 21, 2024
1 parent 6fd967e commit c8cb387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/workspace/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func dedupProjectNames(projects *[]apiclient.CreateProjectDTO) {
}

func GetGitProviderGpgKey(apiClient *apiclient.APIClient, ctx context.Context, providerConfigId *string) (string, error) {
if providerConfigId == nil {
if providerConfigId == nil || *providerConfigId == "" {
return "", nil
}

Expand Down

0 comments on commit c8cb387

Please sign in to comment.