remove unneeded check

This commit is contained in:
Pfeil, Scott Robert 2020-02-13 11:00:18 -05:00
parent c6e9c84809
commit 5d578b0eea

View File

@ -44,7 +44,7 @@ import UIKit
for case let key as String in Array(loadedModules.keys) {
guard modulesRequired.count > 0 else { break }
if let index = modulesRequired.firstIndex(where: {($0 as? String) == key}), index != NSNotFound {
if let index = modulesRequired.firstIndex(where: {($0 as? String) == key}) {
modulesRequired.remove(at: index)
}
}