style: Format code for consistency and readability across database and note positioning files

This commit is contained in:
2026-05-22 17:31:49 +02:00
parent 729e575a60
commit 814f8f7c04
4 changed files with 62 additions and 58 deletions
+3 -3
View File
@@ -59,9 +59,9 @@ class NoteRepository {
Future<void> createCategory(Category category) async {
debugPrint('createCategory called with: ${category.name}');
final DbCategory? existingCategory = await (
_database.select(_database.categories)..where((c) => c.id.equals(category.id))
).getSingleOrNull();
final DbCategory? existingCategory = await (_database.select(
_database.categories,
)..where((c) => c.id.equals(category.id))).getSingleOrNull();
final int effectiveServerVersion = math.max(
category.serverVersion,
existingCategory?.serverVersion ?? category.serverVersion,