From 5864b535ca3c598b273a62a5ea4c1ad31441a135 Mon Sep 17 00:00:00 2001 From: vjrj Date: Fri, 10 Jul 2026 10:34:43 +0200 Subject: [PATCH] Solve lint issue --- apps/app_seeds/lib/domain/species_autoclassify.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_seeds/lib/domain/species_autoclassify.dart b/apps/app_seeds/lib/domain/species_autoclassify.dart index 7736ef7..ded156b 100644 --- a/apps/app_seeds/lib/domain/species_autoclassify.dart +++ b/apps/app_seeds/lib/domain/species_autoclassify.dart @@ -46,12 +46,12 @@ String? matchSpeciesInLabel(String label, List names) { if (!_containsSequence(haystack, needle)) continue; final chars = needle.fold(0, (sum, t) => sum + t.length); final score = (tokens: needle.length, chars: chars); - if (best == null || _isBetter(score, best!)) { + if (best == null || _isBetter(score, best)) { best = score; winners ..clear() ..add(entry.speciesId); - } else if (score.tokens == best!.tokens && score.chars == best!.chars) { + } else if (score.tokens == best.tokens && score.chars == best.chars) { winners.add(entry.speciesId); } }