Skip to content

Commit 7ca8260

Browse files
committed
Remove redundant unwrapping
1 parent 40d8d21 commit 7ca8260

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Core/Sources/SuggestionWidget/SuggestionPanelView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ struct ToolBar: View {
139139
Image(systemName: "chevron.left")
140140
}.buttonStyle(.plain)
141141

142-
if let suggestion = viewModel.suggestion {
143-
Text("\(suggestion.currentSuggestionIndex + 1) / \(suggestion.suggestionCount)")
144-
.monospacedDigit()
145-
}
142+
Text(
143+
"\(viewModel.suggestion.currentSuggestionIndex + 1) / \(viewModel.suggestion.suggestionCount)"
144+
)
145+
.monospacedDigit()
146146

147147
Button(action: {
148148
Task {

0 commit comments

Comments
 (0)