Skip to content

Commit 09f2c8f

Browse files
committed
[swiftlint] Fix rule: force_cast (Force casts should be avoided)
1 parent ad5d7b5 commit 09f2c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Trie/Trie/TrieTests/TrieTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ class TrieTests: XCTestCase {
164164
let fileName = "dictionary-archive"
165165
let filePath = resourcePath.appendingPathComponent(fileName)
166166
NSKeyedArchiver.archiveRootObject(trie, toFile: filePath)
167-
let trieCopy = NSKeyedUnarchiver.unarchiveObject(withFile: filePath) as! Trie
168-
XCTAssertEqual(trieCopy.count, trie.count)
167+
let trieCopy = NSKeyedUnarchiver.unarchiveObject(withFile: filePath) as? Trie
168+
XCTAssertEqual(trieCopy?.count, trie.count)
169169

170170
}
171171

0 commit comments

Comments
 (0)