Skip to content

Commit

Permalink
Replace ‘open’ with ‘public’ for final symbols
Browse files Browse the repository at this point in the history
They can’t be overridden anyway, so no need for them to be open.
  • Loading branch information
JohnSundell committed Aug 21, 2018
1 parent 937be14 commit c71cf2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/Shared/AuthConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation

@objc open class AuthConfig: NSObject {

open static var networking: Networking = Networking(configuration: URLSessionConfiguration.default)
public static var networking: Networking = Networking(configuration: URLSessionConfiguration.default)

open var clientId: String
open var accessGrantType: String
Expand Down
6 changes: 3 additions & 3 deletions Sources/Shared/AuthContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import Foundation

// MARK: - Services

open static func addService(_ service: AuthService) {
public static func addService(_ service: AuthService) {
services[service.name] = service
}

open static func serviceNamed(_ name: String) -> AuthService? {
public static func serviceNamed(_ name: String) -> AuthService? {
return services[name]
}

// MARK: - Helpers

open static func locker(_ serviceName: String) -> Lockable? {
public static func locker(_ serviceName: String) -> Lockable? {
return serviceNamed(serviceName)?.locker
}
}
6 changes: 3 additions & 3 deletions Sources/Shared/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import Foundation

public typealias Completion = (String?, Error?) -> Void

open let name: String
open let config: AuthConfig
open var locker: Lockable
public let name: String
public let config: AuthConfig
public var locker: Lockable

fileprivate var pendingTokenCompletions = [Completion]()
fileprivate var executing = false
Expand Down

0 comments on commit c71cf2d

Please sign in to comment.