Skip to content

Commit

Permalink
fix Xcode warning about shadowed generic parameter
Browse files Browse the repository at this point in the history
shadowed generic parameter should not be used. for more detail, see https://forums.swift.org/t/why-is-shadowing-a-generic-parameter-an-error-in-swift-6/65540/2
  • Loading branch information
fumito-ito committed Aug 8, 2024
1 parent cf03942 commit 68d38d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftyRemoteConfig/RemoteConfigObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class RemoteConfigObserver<T: RemoteConfigSerializable>: NSObject,
}
}

private static func deserialize<T: RemoteConfigSerializable>(_ value: RemoteConfigValue?, for key: RemoteConfigKey<T>) -> T.T? where T.T == T {
private static func deserialize(_ value: RemoteConfigValue?, for key: RemoteConfigKey<T>) -> T.T? where T.T == T {
guard let value = value else {
return nil
}
Expand Down

0 comments on commit 68d38d6

Please sign in to comment.