Skip to content

Commit

Permalink
workaround nullability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Mar 9, 2024
1 parent e53bca4 commit 0a1a770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/corks/lib/src/cork.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ final class Cork {
}
await signer.sign(id);
if (bearer != null) {
if (!await bearer.verify(signer)) {
// TODO(dnys1): https://github.com/dart-lang/sdk/issues/54664
if (!await bearer!.verify(signer)) {
return false;
}
}
Expand Down

0 comments on commit 0a1a770

Please sign in to comment.