fix lints

This commit is contained in:
Christien Rioux 2025-06-02 15:56:00 -04:00
parent aeaf34e55d
commit d1559c949d
4 changed files with 6 additions and 6 deletions

View file

@ -85,7 +85,7 @@ class ChatComponentCubit extends Cubit<ChatComponentState> {
_onChangedContacts(_contactListCubit.state);
}
Future<void> _initAsync(Completer<void> _cancel) async {
Future<void> _initAsync(Completer<void> cancel) async {
// Subscribe to remote user info
await _updateConversationSubscriptions();
}

View file

@ -294,5 +294,5 @@ class AuthorInputQueue {
InputWindow? _currentWindow;
/// Desired maximum window length
static const int _maxWindowLength = 256;
static const _maxWindowLength = 256;
}

View file

@ -26,11 +26,11 @@ class AuthorInputSource {
////////////////////////////////////////////////////////////////////////////
Future<int> getTailPosition() async =>
Future<int> getTailPosition() =>
_dhtLog.operate((reader) async => reader.length);
Future<AsyncValue<InputWindow?>> getWindow(
int startPosition, int windowLength) async =>
int startPosition, int windowLength) =>
_dhtLog.operate((reader) async {
// Don't allow negative length
if (windowLength <= 0) {

View file

@ -19,7 +19,7 @@ class MessageIntegrity {
////////////////////////////////////////////////////////////////////////////
// Public interface
Future<Uint8List> generateMessageId(proto.Message? previous) async {
Future<Uint8List> generateMessageId(proto.Message? previous) {
if (previous == null) {
// If there's no last sent message,
// we start at a hash of the identity public key
@ -47,7 +47,7 @@ class MessageIntegrity {
message.signature = signature.toProto();
}
Future<bool> verifyMessage(proto.Message message) async {
Future<bool> verifyMessage(proto.Message message) {
// Ensure the message is signed
assert(message.hasSignature(), 'should not verify unsigned message');
final signature = message.signature.toVeilid();