Skip to content

Commit 85ee9cf

Browse files
Use .reduce
1 parent be26f2e commit 85ee9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebDriver/Keys.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public struct Keys: RawRepresentable {
77

88
/// Concatenates multiple key sequences into a single one.
99
public static func sequence(_ keys: [Self]) -> Self {
10-
Self(rawValue: keys.map(\.rawValue).joined())
10+
Self(rawValue: keys.reduce("") { $0 + $1.rawValue })
1111
}
1212

1313
/// Concatenates multiple key sequences into a single one.

0 commit comments

Comments
 (0)