Simplify condition

This commit is contained in:
Neeraj Gupta 2023-11-30 10:38:15 +05:30
parent 7230d52dd2
commit 6780a3409c

View file

@ -108,8 +108,6 @@ String parseErrorForUI(
} else {
errorInfo = "Reason: " + dioError.type.toString();
}
} else if (!kDebugMode) {
errorInfo = error.toString();
} else {
errorInfo = error.toString().split('Source stack')[0];
}