Skip to content

Commit

Permalink
Update Sources/BetterCodable/LossyDictionary.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Sands <[email protected]>
  • Loading branch information
NachoSoto and marksands authored Apr 28, 2022
1 parent 1e3013d commit 060c3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BetterCodable/LossyDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ extension LossyDictionary: Encodable where Key: Encodable, Value: Encodable {

extension LossyDictionary: Equatable where Key: Equatable, Value: Equatable { }

// From https://github.com/apple/swift-corelibs-foundation/blob/main/Sources/Foundation/JSONEncoder.swift
// From https://github.com/apple/swift-corelibs-foundation/blob/bfead15ba7a547a8e2ea79dfd8be97de1153245d/Sources/Foundation/JSONEncoder.swift#L127-L174
private func convertToSnakeCase(_ stringKey: String) -> String {
guard !stringKey.isEmpty else { return stringKey }

Expand Down

0 comments on commit 060c3e3

Please sign in to comment.