Skip to content

Commit

Permalink
Replace lengthy comment with asana task link
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme committed Jul 5, 2024
1 parent abd7805 commit 3e00442
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,8 @@ final class SecureVaultLoginImporter: LoginImporter {
}

extension SecureVaultModels.WebsiteAccount {
/*
Rules
username: is a duplicate if:
it's an exact match
one entry has a value and the other entry doesn't, it's not a duplicate
password: is a duplicate if:
it's an exact match
one entry has a value and the other entry doesn't, it's not a duplicate
url: is a duplicate if:
if the cleaned* version of the URL is an exact match, it's a duplicate
notes: is a duplicate if:
it's an exact match
the stored entry has a value and the import entry doesn't
title: is a duplicate if:
it's an exact match
the stored entry has a value and the import entry doesn't
*/

// Deduplication rules: https://app.asana.com/0/0/1207598052765977/f
func isDuplicateOf(accountToBeImported: Self, signatureOfAccountToBeImported: String, passwordToBeImported: String?) -> Bool {
guard signature == signatureOfAccountToBeImported || passwordToBeImported.isNilOrEmpty else {
return false
Expand Down

0 comments on commit 3e00442

Please sign in to comment.