Skip to content

Commit 1560381

Browse files
committed
fix: simplify self
1 parent 8a1d135 commit 1560381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CountriesSwiftUI/Persistence/CoreDataHelpers.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protocol ManagedEntity: NSFetchRequestResult { }
1616
extension ManagedEntity where Self: NSManagedObject {
1717

1818
static var entityName: String {
19-
let nameMO = String(describing: Self.self)
19+
let nameMO = String(describing: self)
2020
let suffixIndex = nameMO.index(nameMO.endIndex, offsetBy: -2)
2121
return String(nameMO[..<suffixIndex])
2222
}

0 commit comments

Comments
 (0)