Add Copilot suggested change (2/3)

https://github.com/kodjodevf/mangayomi/pull/714#discussion_r3139743018

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
NBA2K1 2026-04-24 22:22:56 +02:00 committed by GitHub
parent 518b484a69
commit 519eb9d589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,7 +107,8 @@ Future<dynamic> updateMangaDetail(
final newChapters = <Chapter>[];
for (final chap in chaps) {
final url = chap.url!.trim();
final url = chap.url?.trim();
if (url == null || url.isEmpty) continue;
final existing = existingByUrl[url];
if (existing == null) {