style: Format code for consistency and readability across database and note positioning files
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user