remove redundant calls

trimLeft() and trimRight() after trim() do nothing
This commit is contained in:
NBA2K1 2025-11-28 23:33:32 +01:00
parent 01b3ed9f24
commit e0ecc94869

View file

@ -171,7 +171,7 @@ Future<dynamic> updateMangaDetail(
extension DefaultValueExtension on String? {
String? trimmedOrDefault(String? defaultValue) {
if (this?.trim().trimLeft().trimRight().isNotEmpty ?? false) {
if (this?.trim().isNotEmpty ?? false) {
return this!.trim().trimLeft().trimRight();
}
return defaultValue;