Skip to content

Commit

Permalink
[ws-daemon] Fix panix in tests (#20638)
Browse files Browse the repository at this point in the history
Tool: gitpod/catfood.gitpod.cloud
  • Loading branch information
geropl authored Feb 27, 2025
1 parent fabaae8 commit 0cba458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ func (wsc *WorkspaceController) handleWorkspaceInit(ctx context.Context, ws *wor
}

func initializerMetricsFromInitializerStats(stats *csapi.InitializerMetrics) *workspacev1.InitializerMetrics {
if stats == nil {
if stats == nil || len(*stats) == 0 {
return nil
}

0 comments on commit 0cba458

Please sign in to comment.