diff --git a/templates/machine.swift.motemplate b/templates/machine.swift.motemplate index 229ab325..20010154 100644 --- a/templates/machine.swift.motemplate +++ b/templates/machine.swift.motemplate @@ -47,11 +47,7 @@ open class _<$sanitizedManagedObjectClassName$>: NSManagedObject { @nonobjc open class func fetchRequest() -> NSFetchRequest<<$sanitizedManagedObjectClassName$>> { - if #available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *) { - return NSManagedObject.fetchRequest() as! NSFetchRequest<<$sanitizedManagedObjectClassName$>> - } else { - return NSFetchRequest(entityName: self.entityName()) - } + return NSFetchRequest(entityName: self.entityName()) } // MARK: - Life cycle methods