Skip to content

Commit

Permalink
fix lintings
Browse files Browse the repository at this point in the history
  • Loading branch information
pbarbenheim committed Jan 8, 2025
1 parent 19355a6 commit 0690f61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/repository/repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Repository {
throw Exception("SigningIdentity not found");
}

final privateKey = await OpenPGP.decryptPrivateKey(armored, password);
final privateKey = OpenPGP.decryptPrivateKey(armored, password);
final DateTime date = DateTime.now();
final signature =
OpenPGP.signDetachedCleartext(message, [privateKey], time: date);
Expand All @@ -253,7 +253,7 @@ class Repository {
final userId =
[name, if (comment != null) "($comment)", "<$email>"].join(" ");
final privateKey = await compute(
(message) async => await OpenPGP.generateKey(
(message) async => OpenPGP.generateKey(
[userId],
password,
type: KeyType.rsa,
Expand Down Expand Up @@ -780,7 +780,7 @@ class Signatur {
final PublicKey publicKey = repo.getIdentity(userId).loadPublicKey();

try {
final msg = await OpenPGP.verifyDetached(
final msg = OpenPGP.verifyDetached(
eintrag,
signature,
[publicKey],
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/screens/identities.dart
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class _AddIdentityFormState extends ConsumerState<AddIdentityForm> {
comment,
);

if (mounted) {
if (context.mounted) {
Navigator.of(context).pop();

IdentitiesRoute(result.userId).go(context);
Expand Down

0 comments on commit 0690f61

Please sign in to comment.