Update query.dart

clean code
This commit is contained in:
debuggerx01 2022-01-11 19:27:50 +08:00 committed by GitHub
parent abc1153076
commit 9637c25a97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,7 +332,7 @@ abstract class Query<T, Where extends QueryWhere> extends QueryBase<T> {
} }
if (_groupBy != null) b.write(' GROUP BY $_groupBy'); if (_groupBy != null) b.write(' GROUP BY $_groupBy');
var orderByClause = _orderBy.map((order) => order.compile()).join(', '); var orderByClause = _orderBy.map((order) => order.compile()).join(', ');
if (orderByClause.isNotEmpty == true) { if (orderByClause.isNotEmpty) {
b.write(' ORDER BY $orderByClause'); b.write(' ORDER BY $orderByClause');
} }
if (_limit != null) b.write(' LIMIT $_limit'); if (_limit != null) b.write(' LIMIT $_limit');