mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 16:01:58 +00:00
remove redundant calls
trimLeft() and trimRight() after trim() do nothing
This commit is contained in:
parent
01b3ed9f24
commit
e0ecc94869
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue