Skip to content

Commit d102206

Browse files
committed
remove unnecessary conditional binding
1 parent 6267b0f commit d102206

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: LlamaChat/ui/sources/convert/ConvertSourceView.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,8 @@ struct ConvertSourceView: View {
186186
Text("LlamaChat will convert the PyTorch model weights to the .ggml format.\n\nAdditional disk space is required since the original file(s) are left untouched.")
187187
}
188188
case .converting, .failedToConvert, .finishedConverting:
189-
if let steps = viewModel.conversionSteps {
190-
ForEach(steps, id: \.id) { stepViewModel in
191-
ConvertSourceStepView(viewModel: stepViewModel)
192-
}
189+
ForEach(viewModel.conversionSteps, id: \.id) { stepViewModel in
190+
ConvertSourceStepView(viewModel: stepViewModel)
193191
}
194192
}
195193
}

0 commit comments

Comments
 (0)