Skip to content

Commit

Permalink
fix: compare against correct enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
blaugold committed May 2, 2023
1 parent 5b4671e commit 7e06af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cbl/lib/src/fleece/decoder.dart
Expand Up @@ -313,7 +313,7 @@ class RecursiveFleeceDecoder extends Converter<Data, Object?> {
Object? convert(Data input) {
final doc = Doc.fromResultData(input, trust, sharedKeys: sharedKeys);
final root = doc.root;
if (root.type == FLValueType.undefined) {
if (root.type == ValueType.undefined) {
throw ArgumentError('Invalid Fleece data');
}

Expand Down

0 comments on commit 7e06af5

Please sign in to comment.