Skip to content

Commit

Permalink
Fix some swiftlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
phimage authored and e-marchand committed Apr 30, 2020
1 parent 5b99436 commit 3430e76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/HMAC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ open class HMAC {

let ipadAndMessageHash = SHA1(ipad + message).calculate()
let mac = SHA1(opad + ipadAndMessageHash).calculate()
var hashedData: Data? = nil
var hashedData: Data?
mac.withUnsafeBufferPointer { pointer in
guard let baseAddress = pointer.baseAddress else { return }
hashedData = Data(bytes: baseAddress, count: mac.count)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Handler/ASWebAuthenticationURLHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ open class ASWebAuthenticationURLHandler: OAuthSwiftURLHandlerType {
})
webAuthSession.presentationContextProvider = presentationContextProvider
webAuthSession.prefersEphemeralWebBrowserSession = prefersEphemeralWebBrowserSession

_ = webAuthSession.start()
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthSwiftCredential.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum OAuthSwiftHashMethod: String {
switch self {
case .sha1:
let mac = SHA1(data).calculate()
var hashedData: Data? = nil
var hashedData: Data?
mac.withUnsafeBufferPointer { pointer in
guard let baseAddress = pointer.baseAddress else { return }
hashedData = Data(bytes: baseAddress, count: mac.count)
Expand Down

0 comments on commit 3430e76

Please sign in to comment.