File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -753,17 +753,13 @@ void main() {
753
753
return result;
754
754
}
755
755
756
- /// This is an alternative to [ZulipApp] 's implementation of
757
- /// [reportErrorToUserBriefly] for testing.
758
- Future <void > logAndReportErrorToUserBriefly (String ? message, {
759
- String ? details,
760
- }) async {
756
+ Future <void > logReportedError (String ? message, {String ? details}) async {
761
757
if (message == null ) return ;
762
758
lastReportedError = '$message \n $details ' ;
763
759
}
764
760
765
761
Future <void > prepare () async {
766
- reportErrorToUserBriefly = logAndReportErrorToUserBriefly ;
762
+ reportErrorToUserBriefly = logReportedError ;
767
763
addTearDown (() => reportErrorToUserBriefly = defaultReportErrorToUserBriefly);
768
764
await preparePoll (lastEventId: 1 );
769
765
}
You can’t perform that action at this time.
0 commit comments