Skip to content

Commit

Permalink
Removed unneeded return of storage settings
Browse files Browse the repository at this point in the history
  • Loading branch information
charliescheer committed May 31, 2024
1 parent c279f3b commit 56f5f45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Simplenote/SharedStorageMigrator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ class SharedStorageMigrator: NSObject {
/// To be able to share data with app extensions, the CoreData database needs to be migrated to an app group
/// Must run before Simperium is setup

func performMigrationIfNeeded() -> StorageSettings {
func performMigrationIfNeeded() {
if migrationNeeded {
migrateCoreDataToAppGroup()
}

return storageSettings
}

private var migrationNeeded: Bool {
Expand Down
3 changes: 2 additions & 1 deletion Simplenote/SimplenoteAppDelegate+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ extension SimplenoteAppDelegate {

@objc
func setupStorage() {
let storageSettings = SharedStorageMigrator().performMigrationIfNeeded()
SharedStorageMigrator().performMigrationIfNeeded()
let storageSettings = StorageSettings()

do {
try validateStorageDirectory(at: storageSettings.storageDirectory)
Expand Down

0 comments on commit 56f5f45

Please sign in to comment.