mirror of
https://github.com/immich-app/drift.git
synced 2026-09-30 13:22:57 +08:00
Remove unecessary call / typo (#1883)
This commit is contained in:
@@ -64,8 +64,7 @@ class UpdateStatement<T extends Table, D> extends Query<T, D>
|
||||
Future<int> write(Insertable<D> entity, {bool dontExecute = false}) async {
|
||||
_sourceTable.validateIntegrity(entity).throwIfInvalid(entity);
|
||||
|
||||
_updatedFields = entity.toColumns(true)
|
||||
..remove((_, value) => value == null);
|
||||
_updatedFields = entity.toColumns(true);
|
||||
|
||||
if (_updatedFields.isEmpty) {
|
||||
// nothing to update, we're done
|
||||
|
||||
Reference in New Issue
Block a user