mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 04:50:24 +00:00
🚨 Change loadData from open to public
Non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
This commit is contained in:
parent
ec73c146f0
commit
a6c6cef4b9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue