Skip to content

Commit b278932

Browse files
committed
make extensions fileprivate
1 parent a0f84ef commit b278932

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/FoundationEssentials/JSON/JSONDecoder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,8 +1857,8 @@ extension EncodingError {
18571857
}
18581858
}
18591859

1860-
extension JSONDecoder.KeyDecodingStrategy {
1861-
fileprivate var isDefault: Bool {
1860+
fileprivate extension JSONDecoder.KeyDecodingStrategy {
1861+
var isDefault: Bool {
18621862
switch self {
18631863
case .useDefaultKeys: true
18641864
default: false

Sources/FoundationEssentials/JSON/JSONEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ extension Array : _JSONDirectArrayEncodable where Element: _JSONSimpleValueArray
15031503
}
15041504
}
15051505

1506-
private extension JSONEncoder.KeyEncodingStrategy {
1506+
fileprivate extension JSONEncoder.KeyEncodingStrategy {
15071507
var isDefault: Bool {
15081508
switch self {
15091509
case .useDefaultKeys:

0 commit comments

Comments
 (0)