Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leoMehlig committed Sep 2, 2023
1 parent 403672a commit 4c10fc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/Defaults/Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ extension Defaults.Serializable {
return anyObject
}

guard let nextType = T.Serializable.self as? any Defaults.Serializable.Type, nextType != T.self else {
guard let nextType = T.Serializable.self as? any Defaults.Serializable.Type, nextType != T.self else {
// This is a special case for the types which do not conform to `Defaults.Serializable` (for example, `Any`).
return T.bridge.deserialize(anyObject as? T.Serializable) as? T
}
Expand Down
10 changes: 5 additions & 5 deletions Tests/DefaultsTests/DefaultsAnySeriliazableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ final class DefaultsAnySerializableTests: XCTestCase {
waitForExpectations(timeout: 10)
}

func testWrongCast() {
let value = Defaults.AnySerializable(false)
XCTAssertEqual(value.get(Bool.self), false)
XCTAssertNil(value.get(String.self))
}
func testWrongCast() {
let value = Defaults.AnySerializable(false)
XCTAssertEqual(value.get(Bool.self), false)

Check warning on line 472 in Tests/DefaultsTests/DefaultsAnySeriliazableTests.swift

View workflow job for this annotation

GitHub Actions / lint

XCTest Specific Matcher Violation: Prefer the specific matcher 'XCTAssertFalse' instead (xct_specific_matcher)
XCTAssertNil(value.get(String.self))
}
}

0 comments on commit 4c10fc0

Please sign in to comment.