Skip to content

Commit

Permalink
remove redundant 'let _' assignment in Swift tests
Browse files Browse the repository at this point in the history
this will be enforced in future SwiftLint releases
  • Loading branch information
jpsim committed Feb 10, 2017
1 parent 942fd88 commit 0944c4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions RealmSwift/Tests/MigrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ class MigrationTests: TestCase {

autoreleasepool {
assertSucceeds {
let _ = try Realm(configuration: config)
_ = try Realm(configuration: config)
}
}
}

func testDeleteRealmIfMigrationNeeded() {
autoreleasepool { let _ = try! Realm(configuration: Realm.Configuration(fileURL: defaultRealmURL())) }
autoreleasepool { _ = try! Realm(configuration: Realm.Configuration(fileURL: defaultRealmURL())) }

let objectSchema = RLMObjectSchema(forObjectClass: SwiftEmployeeObject.self)
objectSchema.properties = Array(objectSchema.properties[0..<1])
Expand Down Expand Up @@ -510,7 +510,7 @@ class MigrationTests: TestCase {
deleteRealmIfMigrationNeeded: true)

assertSucceeds {
let _ = try Realm(configuration: config)
_ = try Realm(configuration: config)
}

class_replaceMethod(metaClass, #selector(RLMObjectBase.sharedSchema), originalImp, "@@:")
Expand Down
2 changes: 1 addition & 1 deletion RealmSwift/Tests/RealmTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class RealmTests: TestCase {

func testFilePermissionDenied() {
autoreleasepool {
let _ = try! Realm(fileURL: testRealmURL())
_ = try! Realm(fileURL: testRealmURL())
}

// Make Realm at test path temporarily unreadable
Expand Down

0 comments on commit 0944c4c

Please sign in to comment.