Skip to content

Commit

Permalink
Asky's code review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesyangf authored and James Yang committed May 17, 2024
1 parent 74b8ebe commit b9b5c48
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,16 @@ public class BaseHosts: NSObject {
contentHost: String,
notifyHost: String
) {
self.init(apiHost: apiHost, contentHost: contentHost, downloadContentHost: contentHost, notifyHost: notifyHost)
self.init(
apiHost: apiHost,
contentHost: contentHost,
downloadContentHost: contentHost,
notifyHost: notifyHost
)
}

@objc public required init(
@objc
public required init(
apiHost: String,
contentHost: String,
downloadContentHost: String,
Expand Down Expand Up @@ -571,10 +577,9 @@ extension BaseHosts {
switch attr.host {
case .api:
return apiHost
case .content where attr.style == .download:
return downloadContentHost
case .content:
if attr.style == .download {
return downloadContentHost
}
return contentHost
case .notify:
return notifyHost
Expand Down

0 comments on commit b9b5c48

Please sign in to comment.