Skip to content

Commit 4f0ddd2

Browse files
committed
More SwiftLint fixes
1 parent 717d3f9 commit 4f0ddd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/CodeEditSourceEditor/Find/PanelView/FindPanelView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,22 +125,22 @@ struct FindPanelView: View {
125125
ControlGroup {
126126
Button(action: {
127127
// TODO: Replace action
128-
}) {
128+
}, label: {
129129
Text("Replace")
130130
.opacity(viewModel.findText.isEmpty || viewModel.matchCount == 0 ? 0.33 : 1)
131131
.frame(width: viewModel.findControlsWidth/2 - 12 - 0.5)
132-
}
132+
})
133133
// TODO: disable if there is not an active match
134134
.disabled(viewModel.findText.isEmpty || viewModel.matchCount == 0)
135135
Divider()
136136
.overlay(Color(nsColor: .tertiaryLabelColor))
137137
Button(action: {
138138
// TODO: Replace all action
139-
}) {
139+
}, label: {
140140
Text("All")
141141
.opacity(viewModel.findText.isEmpty || viewModel.matchCount == 0 ? 0.33 : 1)
142142
.frame(width: viewModel.findControlsWidth/2 - 12 - 0.5)
143-
}
143+
})
144144
.disabled(viewModel.findText.isEmpty || viewModel.matchCount == 0)
145145
}
146146
.controlGroupStyle(PanelControlGroupStyle())

0 commit comments

Comments
 (0)