Skip to content

Commit

Permalink
Fix SwiftLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tovkal committed Aug 8, 2017
1 parent 567c268 commit 2ad1027
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Tests/RouterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class RouterTests: QuickSpec {
return nil
}

let _ = NSURLConnection(request: request, delegate: nil)
_ = NSURLConnection(request: request, delegate: nil)

expect(info?.components).toEventually(equal(["id": "1"]))
expect(info?.queryParameters).toEventually(equal([]))
Expand Down Expand Up @@ -830,7 +830,7 @@ class RouterTests: QuickSpec {

var info: URLInfo? = nil
var responseURL: URL? = nil
let _ = Router.register("http://www.host2.com")
_ = Router.register("http://www.host2.com")

router.get("/users/:id") { request in
XCTFail("Shouldn't reach here")
Expand Down
12 changes: 6 additions & 6 deletions Tests/StoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class StoreTests: QuickSpec {

it("should not deadlock when synchronously writing from another queue into the store during a writing operation") {
let user = sut.insert { (id) -> User in
let _ = queue.sync {
_ = queue.sync {
sut.insert { (id) -> User in
return User(id: id, store: sut)
}
Expand All @@ -395,7 +395,7 @@ class StoreTests: QuickSpec {

it("should not deadlock when synchronously writing from another queue into the store during a reading operation") {
let result = sut.filter(User.self, isIncluded: { (_) -> Bool in
let _ = queue.sync {
_ = queue.sync {
sut.create(User.self)
}
return true
Expand All @@ -406,7 +406,7 @@ class StoreTests: QuickSpec {

it("should not deadlock when reading the store during a read operation") {
let result = sut.filter(User.self, isIncluded: { (_) -> Bool in
let _ = sut.findAll(User.self)
_ = sut.findAll(User.self)
return true
})

Expand All @@ -415,7 +415,7 @@ class StoreTests: QuickSpec {

it("should not deadlock when synchronously reading the store from another queue during a reading operation") {
let result = sut.filter(User.self, isIncluded: { (_) -> Bool in
let _ = queue.sync {
_ = queue.sync {
sut.findAll(User.self)
}
return true
Expand All @@ -426,15 +426,15 @@ class StoreTests: QuickSpec {

it("should not deadlock when reading the store during a write operation") {
let user = sut.insert { (id) -> User in
let _ = sut.findAll(User.self)
_ = sut.findAll(User.self)
return User(id: id, store: sut)
}
expect(user).toEventuallyNot(beNil())
}

it("should not deadlock when synchronously reading the store from another queue during a write operation") {
let user = sut.insert { (id) -> User in
let _ = queue.sync {
_ = queue.sync {
sut.findAll(User.self)
}
return User(id: id, store: sut)
Expand Down

0 comments on commit 2ad1027

Please sign in to comment.