Skip to content

Commit ae5df69

Browse files
algolia-botmillotp
andcommitted
chore(scripts): reuse the swift build folder (generated)
algolia/api-clients-automation#5484 Co-authored-by: Pierre Millot <[email protected]>
1 parent 411fe1b commit ae5df69

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Sources/Core/Helpers/APIHelper.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,6 @@ public enum APIHelper {
3636
}
3737
}
3838

39-
public static func convertBoolToString(_ source: [String: Any]?) -> [String: Any]? {
40-
guard let source else {
41-
return nil
42-
}
43-
44-
return source.reduce(into: [String: Any]()) { result, item in
45-
switch item.value {
46-
case let x as Bool:
47-
result[item.key] = x.description
48-
default:
49-
result[item.key] = item.value
50-
}
51-
}
52-
}
53-
5439
public static func convertAnyToString(_ value: Any?) -> String? {
5540
guard let value else { return nil }
5641
if let value = value as? any RawRepresentable {

0 commit comments

Comments
 (0)