mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
remove redundant calls
This commit is contained in:
parent
33152fc035
commit
c7e648a6d9
1 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ Future<dynamic> updateMangaDetail(
|
|||
|
||||
final genre =
|
||||
getManga.genre
|
||||
?.map((e) => e.toString().trim().trimLeft().trimRight())
|
||||
?.map((e) => e.toString().trim())
|
||||
.toList()
|
||||
.toSet()
|
||||
.toList() ??
|
||||
|
|
@ -80,7 +80,7 @@ Future<dynamic> updateMangaDetail(
|
|||
for (var i = 0; i < newChapsIndex; i++) {
|
||||
final chapter = Chapter(
|
||||
name: chaps[i].name!,
|
||||
url: chaps[i].url!.trim().trimLeft().trimRight(),
|
||||
url: chaps[i].url!.trim(),
|
||||
dateUpload: chaps[i].dateUpload == null
|
||||
? DateTime.now().millisecondsSinceEpoch.toString()
|
||||
: chaps[i].dateUpload.toString(),
|
||||
|
|
@ -172,7 +172,7 @@ Future<dynamic> updateMangaDetail(
|
|||
extension DefaultValueExtension on String? {
|
||||
String? trimmedOrDefault(String? defaultValue) {
|
||||
if (this?.trim().isNotEmpty ?? false) {
|
||||
return this!.trim().trimLeft().trimRight();
|
||||
return this!.trim();
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue