Skip to content

Commit 0d166d9

Browse files
committed
Fix formatting
1 parent 425ebfd commit 0d166d9

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

links/gql_dio_link/lib/src/dio_link.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,9 @@ class DioLink extends Link {
164164
? parser.parseResponse(res.data as Map<String, dynamic>)
165165
: null;
166166
throw DioLinkServerException(
167-
response: res,
168-
parsedResponse: parsedResponse,
169-
originalException: e
170-
);
167+
response: res,
168+
parsedResponse: parsedResponse,
169+
originalException: e);
171170
}
172171
case dio.DioErrorType.DEFAULT:
173172
default:

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
34-
);
27+
const DioLinkServerException(
28+
{@required this.response,
29+
@required Response parsedResponse,
30+
dynamic originalException})
31+
: super(
32+
parsedResponse: parsedResponse,
33+
originalException: originalException);
3534

3635
@override
3736
String toString() {
3837
final dynamic data = response.data;
3938
String plainResponse = "...";
4039
if (data is String) {
41-
plainResponse = data.length > 80 ? data.replaceRange(80, data.length, "...") : data;
40+
plainResponse =
41+
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)