🚨 Change loadData from open to public

Non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
This commit is contained in:
Ben Chatelain 2022-09-21 19:23:48 -06:00
parent ec73c146f0
commit a6c6cef4b9

View file

@ -10,7 +10,7 @@ import Foundation
import PromiseKit
extension URLSession: NetworkSession {
open func loadData(from url: URL) -> Promise<Data> {
public func loadData(from url: URL) -> Promise<Data> {
Promise { seal in
dataTask(with: url) { data, _, error in
if let data = data {