Skip to content

Commit 0cba458

Browse files
authored
[ws-daemon] Fix panix in tests (#20638)
Tool: gitpod/catfood.gitpod.cloud
1 parent fabaae8 commit 0cba458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ws-daemon/pkg/controller/workspace_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (wsc *WorkspaceController) handleWorkspaceInit(ctx context.Context, ws *wor
226226
}
227227

228228
func initializerMetricsFromInitializerStats(stats *csapi.InitializerMetrics) *workspacev1.InitializerMetrics {
229-
if stats == nil {
229+
if stats == nil || len(*stats) == 0 {
230230
return nil
231231
}
232232

0 commit comments

Comments
 (0)