Skip to content

Commit

Permalink
Fix commit message issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mssun committed Feb 3, 2025
1 parent f4b01cf commit 931a44b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions passKit/Models/PasswordStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ public class PasswordStore {

public func delete(passwordEntity: PasswordEntity) throws {
let deletedFileURL = passwordEntity.fileURL(in: storeURL)
let deletedFilePath = passwordEntity.path
try gitRm(path: passwordEntity.path)
try deletePasswordEntities(passwordEntity: passwordEntity)
try deleteDirectoryTree(at: deletedFileURL)
try gitCommit(message: "RemovePassword.".localize(passwordEntity.path))
try gitCommit(message: "RemovePassword.".localize(deletedFilePath))
notificationCenter.post(name: .passwordStoreUpdated, object: nil)
}

Expand Down Expand Up @@ -313,8 +314,9 @@ public class PasswordStore {

// delete
try deleteDirectoryTree(at: deletedFileURL)
let deletedFilePath = passwordEntity.path
try deletePasswordEntities(passwordEntity: passwordEntity)
try gitCommit(message: "RenamePassword.".localize(passwordEntity.path, password.path))
try gitCommit(message: "RenamePassword.".localize(deletedFilePath, password.path))
}
saveUpdatedContext()
notificationCenter.post(name: .passwordStoreUpdated, object: nil)
Expand Down

0 comments on commit 931a44b

Please sign in to comment.