Skip to content

Commit 3ab03a2

Browse files
committed
Use short-hand notation
1 parent b42c512 commit 3ab03a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SwiftLintBuiltInRules/Rules/Lint/UnnestSwitchesUsingTupleRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private extension UnnestSwitchesUsingTupleRule {
131131
let variables: Set<String> = nestingSwitch
132132
.filter { !$0.hasDeclarationInLabelScope(for: $0.referencedVariable) }
133133
.compactMap { $0.referencedVariable }
134-
.reduce(into: [], { p, e in p.insert(e) })
134+
.reduce(into: [], { $0.insert($1) })
135135

136136
// we want all nested switches to reference the same variable
137137
// to be able to unnest a switch using tuples

0 commit comments

Comments
 (0)