Skip to content

Commit

Permalink
Merge pull request #62 from jpmartha/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in LicensePlistExtension
  • Loading branch information
mono0926 authored Jul 18, 2017
2 parents c2fa631 + 4f0bd2e commit 9891184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/LicensePlistCore/Extension/APIKit.extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ extension Session: LicensePlistCompatible {}
extension LicensePlistExtension where Base: Session {
func sendSync<T: Request>(_ request: T) -> Result<T.Response, SessionTaskError> {
var result: Result<T.Response, SessionTaskError>!
let semaphor = DispatchSemaphore(value: 0)
let semaphore = DispatchSemaphore(value: 0)
self.base.send(request, callbackQueue: .sessionQueue) { _result in
result = _result
semaphor.signal()
semaphore.signal()
}
semaphor.wait()
semaphore.wait()
return result
}
func send<T: Request>(_ request: T) -> ResultOperation<T.Response, SessionTaskError> {
Expand Down

0 comments on commit 9891184

Please sign in to comment.