Skip to content

Commit 17bc4bf

Browse files
committed
lint fix
1 parent 064bbed commit 17bc4bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/src/base_request.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ abstract class BaseRequest {
8989
bool _finalized = false;
9090

9191
BaseRequest(String method, this.url)
92-
: this.method = [
92+
: method = [
9393
'HEAD',
9494
'GET',
9595
'POST',
@@ -98,7 +98,7 @@ abstract class BaseRequest {
9898
'DELETE',
9999
].contains(method)
100100
? method
101-
: throw StateError("invalid HTTP method."),
101+
: throw StateError('invalid HTTP method.'),
102102
headers = LinkedHashMap(
103103
equals: (key1, key2) => key1.toLowerCase() == key2.toLowerCase(),
104104
hashCode: (key) => key.toLowerCase().hashCode);

0 commit comments

Comments
 (0)