Skip to content

Commit 7c1847d

Browse files
committed
🚨 fix linter errors
1 parent 8fdf2e0 commit 7c1847d

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

lib/extensions/io_streamed_response.dart

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ extension IOStreamedResponseCopyWith on IOStreamedResponse {
1414
bool? persistentConnection,
1515
String? reasonPhrase,
1616
HttpClientResponse? inner,
17-
}) => IOStreamedResponse(
18-
stream ?? this.stream,
19-
statusCode ?? this.statusCode,
20-
contentLength: contentLength ?? this.contentLength,
21-
request: request ?? this.request,
22-
headers: headers ?? this.headers,
23-
isRedirect: isRedirect ?? this.isRedirect,
24-
persistentConnection: persistentConnection ?? this.persistentConnection,
25-
reasonPhrase: reasonPhrase ?? this.reasonPhrase,
26-
inner: inner,
27-
);
17+
}) =>
18+
IOStreamedResponse(
19+
stream ?? this.stream,
20+
statusCode ?? this.statusCode,
21+
contentLength: contentLength ?? this.contentLength,
22+
request: request ?? this.request,
23+
headers: headers ?? this.headers,
24+
isRedirect: isRedirect ?? this.isRedirect,
25+
persistentConnection: persistentConnection ?? this.persistentConnection,
26+
reasonPhrase: reasonPhrase ?? this.reasonPhrase,
27+
inner: inner,
28+
);
2829
}

test/http/http_methods_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ main() {
148148
// Act
149149
// Assert
150150
expect(
151-
() => HttpMethod.fromString(methodString), throwsArgumentError);
151+
() => HttpMethod.fromString(methodString),
152+
throwsArgumentError,
153+
);
152154
});
153155
});
154156
}

0 commit comments

Comments
 (0)