From 26381be7b7910fe896e878ec2ac39805432b47c6 Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 5 Nov 2024 17:40:08 -0500 Subject: [PATCH] ... --- hive_generator/lib/src/builder/schema_migrator_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive_generator/lib/src/builder/schema_migrator_builder.dart b/hive_generator/lib/src/builder/schema_migrator_builder.dart index ef89c62..bd6ab1d 100644 --- a/hive_generator/lib/src/builder/schema_migrator_builder.dart +++ b/hive_generator/lib/src/builder/schema_migrator_builder.dart @@ -19,7 +19,7 @@ class SchemaMigratorBuilder implements Builder { Future build(BuildStep buildStep) async { final hiveTypes = []; await for (final input in buildStep.findAssets(Glob('**/*.dart'))) { - if (!await buildStep.resolver.isLibrary(input)) return; + if (!await buildStep.resolver.isLibrary(input)) continue; final library = await buildStep.resolver.libraryFor(input); final hiveTypeElements = LibraryReader(library) .annotatedWith(TypeChecker.fromRuntime(HiveType));