From 10e4ff539b8881a5d6b9be99a9e9e26955eb0ce0 Mon Sep 17 00:00:00 2001 From: B R GOVIND Date: Mon, 15 Jun 2026 04:32:18 +0530 Subject: [PATCH] unikernels/linux: remove always-true conditional in firecracker block Inside MonitorBlockCli(), the firecracker switch case already guarantees l.Monitor == firecracker, so the inner if-check is redundant. Remove it and assign the FC prefix directly. Signed-off-by: B R GOVIND --- pkg/unikontainers/unikernels/linux.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/unikontainers/unikernels/linux.go b/pkg/unikontainers/unikernels/linux.go index d6bb8095..3ccea8ad 100644 --- a/pkg/unikontainers/unikernels/linux.go +++ b/pkg/unikontainers/unikernels/linux.go @@ -170,12 +170,8 @@ func (l *Linux) MonitorBlockCli() []types.MonitorBlockArgs { } case "firecracker": for _, aBlock := range l.Blk { - id := aBlock.ID - if l.Monitor == "firecracker" { - id = "FC" + aBlock.ID - } blkArgs = append(blkArgs, types.MonitorBlockArgs{ - ID: id, + ID: "FC" + aBlock.ID, Path: aBlock.Source, }) }