Skip to content

Commit 0939859

Browse files
author
Ivan Dlugos
committed
minor linter issues
1 parent a647484 commit 0939859

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/src/bindings/structs.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import 'dart:ffi';
22
import "dart:typed_data" show Uint8List;
33
import "package:ffi/ffi.dart" show allocate, free;
4-
54
import '../common.dart';
65

6+
// Disable some linter rules for this file
7+
// ignore_for_file: camel_case_types
8+
79
// Note: IntPtr seems to be the the correct representation for size_t: "Represents a native pointer-sized integer in C."
810

911
/// Represents the following C struct:

lib/src/query/builder.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class QueryBuilder<T> {
3434
}
3535

3636
QueryBuilder<T> order(QueryProperty p, {int flags = 0}) {
37+
if (p._entityId != _entityId) {
38+
throw Exception("Passed a property of another entity: ${p._entityId} instead of ${_entityId}");
39+
}
3740
_createBuilder();
3841
checkObx(bindings.obx_qb_order(_cBuilder, p._propertyId, flags));
3942
return this;

0 commit comments

Comments
 (0)