Skip to content

Commit 1ef3a2f

Browse files
dido18lucarin91
andauthored
Update internal/orchestrator/bricks/bricks.go
Co-authored-by: Luca Rinaldi <l.rinaldi@arduino.cc>
1 parent 9f8538a commit 1ef3a2f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/orchestrator/bricks/bricks.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ func getSelectedModelOrDefault(appBrick app.Brick, brickIndex *bricksindex.Brick
140140
if appBrick.Model != "" {
141141
return appBrick.Model
142142
}
143-
if brickIndex == nil {
144-
return ""
145-
}
143+
f.Assert(brickIndex != nil, "bricksindex should be set")
146144
return brickIndex.ModelName
147145
}
148146

0 commit comments

Comments
 (0)