mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactoring
This commit is contained in:
@@ -10,7 +10,10 @@ final public class AdaptedPostboxDecoder {
|
||||
case dataArray
|
||||
}
|
||||
|
||||
func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
|
||||
public init() {
|
||||
}
|
||||
|
||||
public func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
|
||||
return try self.decode(type, from: data, contentType: .object)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user