Swiftlint updates

This commit is contained in:
Garth Vander Houwen 2024-06-28 19:41:17 -07:00
parent 9f1b3975f8
commit a8399f6148
5 changed files with 4 additions and 5 deletions

View file

@ -20,7 +20,7 @@ extension MQTTConfigEntity {
self.mapPositionPrecision = Int32(config.mapReportSettings.positionPrecision)
self.mapPublishIntervalSecs = Int32(config.mapReportSettings.publishIntervalSecs)
}
func update(with config: ModuleConfig.MQTTConfig) {
enabled = config.enabled
proxyToClientEnabled = config.proxyToClientEnabled

View file

@ -11,7 +11,7 @@ extension RangeTestConfigEntity {
self.enabled = config.enabled
self.save = config.save
}
func update(with config: ModuleConfig.RangeTestConfig) {
sender = Int32(config.sender)
enabled = config.enabled

View file

@ -15,7 +15,7 @@ extension SerialConfigEntity {
self.timeout = Int32(config.timeout)
self.mode = Int32(config.mode.rawValue)
}
func update(with config: ModuleConfig.SerialConfig) {
enabled = config.enabled
echo = config.echo

View file

@ -13,7 +13,7 @@ extension StoreForwardConfigEntity {
self.historyReturnMax = Int32(config.historyReturnMax)
self.historyReturnWindow = Int32(config.historyReturnWindow)
}
func update(with config: ModuleConfig.StoreForwardConfig) {
enabled = config.enabled
heartbeat = config.heartbeat

View file

@ -59,7 +59,6 @@ struct AppData: View {
bleManager.disconnectPeripheral(reconnect: false)
let container = NSPersistentContainer(name: "Meshtastic")
do {
clearCoreDataDatabase(context: context, includeRoutes: true)
try container.restorePersistentStore(from: file.absoluteURL)
let request = MyInfoEntity.fetchRequest()
try context.fetch(request)