Remove unecessary call / typo (#1883)

This commit is contained in:
Simon Binder
2022-08-12 23:00:24 +02:00
parent b9a605ed25
commit 721b894141
@@ -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