Skip to content
This repository was archived by the owner on Aug 21, 2021. It is now read-only.

Commit 06e4d9e

Browse files
committed
Replace join on a string with joinWithSeparator on a collection of strings.
1 parent 2c7b831 commit 06e4d9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SwinjectSimpleExample/OpenWeatherMap.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct OpenWeatherMap {
2222
static var parameters: [String: String] {
2323
return [
2424
"APPID": apiKey,
25-
"id": ",".join(cityIds.map { String($0) })
25+
"id": cityIds.map { String($0) }.joinWithSeparator(",")
2626
]
2727
}
2828
}

0 commit comments

Comments
 (0)