Skip to content

Commit

Permalink
style(http_client): remove unneeded null check
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Mar 14, 2022
1 parent 1817817 commit 36fe7ca
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/src/binding_http/http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ class HttpClient extends ProtocolClient {
}

static Map<String, String> _getHeadersFromForm(Form form) {
final Map<String, String> headers = {};

final dynamic formHeaders = form.additionalFields["htv:headers"];
if (formHeaders is List<Map<String, String>>) {
Expand All @@ -152,11 +151,6 @@ class HttpClient extends ProtocolClient {
}
}

final contentType = form.contentType;
if (contentType != null) {
headers["Content-Type"] = contentType;
}

return headers;
}

Expand Down

0 comments on commit 36fe7ca

Please sign in to comment.