Skip to content

Commit ca7d7a4

Browse files
committed
Fixed linter warnings to chill the Hound
1 parent 5457416 commit ca7d7a4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Cookbook/CookbookCommon/Sources/CookbookCommon/Recipes/MiniApps/InstrumentSFZ.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ struct InstrumentSFZView: View {
4141
let instrumentParams = conductor.instrument.parameters
4242
let paramsPerLine = horizontalSizeClass == .compact ? 6 : 8
4343
let instrumentParamsChunked = instrumentParams.chunked(into: paramsPerLine)
44-
44+
4545
GeometryReader { geoProxy in
4646
VStack {
47-
let paramRows = ForEach(0..<instrumentParamsChunked.count, id:\.self) { chunkIndex in
47+
let paramRows = ForEach(0..<instrumentParamsChunked.count, id: \.self) { chunkIndex in
4848
HStack {
4949
ForEach(instrumentParamsChunked[chunkIndex], id: \.self) { param in
5050
ParameterRow(param: param)
@@ -53,7 +53,7 @@ struct InstrumentSFZView: View {
5353
}
5454
// i wanted to do it with verticalSizeClass, but couldn't work it out
5555
if horizontalSizeClass == .compact {
56-
ScrollView {
56+
ScrollView {
5757
paramRows
5858
}
5959
} else {
@@ -86,14 +86,13 @@ extension Array {
8686
extension NodeParameter: Hashable {
8787
public func hash(into hasher: inout Hasher) {
8888
hasher.combine(def.identifier)
89-
}
89+
}
9090
}
9191

9292
extension NodeParameter: Equatable {
93-
public static func ==(lhs: NodeParameter, rhs: NodeParameter) -> Bool {
93+
public static func == (lhs: NodeParameter, rhs: NodeParameter) -> Bool {
9494
// NodeParameter wraps AUParameter which should
9595
// conform to equtable as they are NSObjects
9696
return lhs.parameter == rhs.parameter
9797
}
9898
}
99-

0 commit comments

Comments
 (0)