Skip to content

Commit

Permalink
Merge pull request #137 from ably/replace-chains-unwrap
Browse files Browse the repository at this point in the history
Replace ?-chains with force-unwraps.
  • Loading branch information
tcard committed Jan 20, 2016
2 parents 45553c1 + 0a0488e commit 5df6bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ablySpec/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class Auth : QuickSpec {
}

let key64 = NSString(string: "\(client.options.key!)")
.dataUsingEncoding(NSUTF8StringEncoding)?
.dataUsingEncoding(NSUTF8StringEncoding)!
.base64EncodedStringWithOptions(NSDataBase64EncodingOptions(rawValue: 0))

let expectedAuthorization = "Basic \(key64!)"
let expectedAuthorization = "Basic \(key64)"

expect(mockExecutor.requests.first).toNot(beNil(), description: "No request found")

Expand Down

0 comments on commit 5df6bab

Please sign in to comment.