Skip to content

Commit 425ebfd

Browse files
committed
Fix formatting to be consistent with old code
1 parent 4ec48a3 commit 425ebfd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

links/gql_dio_link/lib/src/exceptions.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ class DioLinkServerException extends ServerException {
2424
/// Response which caused the exception
2525
final dio.Response response;
2626

27-
const DioLinkServerException(
28-
{@required this.response,
29-
@required Response parsedResponse,
30-
dynamic originalException})
31-
: super(
32-
parsedResponse: parsedResponse,
33-
originalException: originalException);
27+
const DioLinkServerException({
28+
@required this.response,
29+
@required Response parsedResponse,
30+
dynamic originalException
31+
}) : super(
32+
parsedResponse: parsedResponse,
33+
originalException: originalException
34+
);
3435

3536
@override
3637
String toString() {
3738
final dynamic data = response.data;
3839
String plainResponse = "...";
3940
if (data is String) {
40-
plainResponse =
41-
data.length > 80 ? data.replaceRange(80, data.length, "...") : data;
41+
plainResponse = data.length > 80 ? data.replaceRange(80, data.length, "...") : data;
4242
}
4343
return "DioLinkServerException(originalException: $originalException, status: ${response.statusCode}, response: ${parsedResponse ?? plainResponse}";
4444
}

0 commit comments

Comments
 (0)