Skip to content

Commit 5a15870

Browse files
committed
codestyle
1 parent 17429df commit 5a15870

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

KeePassKit/Cryptography/KPKHmacOTPGenerator.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,12 @@ - (BOOL)_parseAttributes:(NSArray <KPKAttribute*>*)attributes {
126126
}
127127

128128
- (void)saveToEntry:(KPKEntry *)entry {
129-
/**
129+
/*
130130
strategy ist to add a otp attribute regardless of the current state
131131
update or add KeePass native settings regardless of current state
132132
133133
This leads to entries having at least the otp and the native settings
134134
*/
135-
136-
137135
NSString *urlString = [NSURL URLWithHmacOTPKey:self.key algorithm:self.hashAlgorithm issuer:[self _issuerForEntry:entry] counter:self.counter digits:self.numberOfDigits].absoluteString;
138136
KPKAttribute *urlAttribute = [entry attributeWithKey:kKPKAttributeKeyOTPOAuthURL];
139137
/* update or create the URL attribute */
@@ -145,9 +143,7 @@ - (void)saveToEntry:(KPKEntry *)entry {
145143
urlAttribute.value = urlString;
146144
}
147145

148-
149146
/* HTOP Settings */
150-
151147
KPKAttribute *asciiKeyAttribute = [entry attributeWithKey:kKPKAttributeKeyHmacOTPSecret];
152148
KPKAttribute *hexKeyAttribute = [entry attributeWithKey:kKPKAttributeKeyHmacOTPSecretHex];
153149
KPKAttribute *base32KeyAttribute = [entry attributeWithKey:kKPKAttributeKeyHmacOTPSecretBase32];

0 commit comments

Comments
 (0)