Skip to content

Commit

Permalink
⚡️ Type promote
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 23, 2023
1 parent 124d3cf commit 7115b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dio/lib/src/transformers/sync_transformer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SyncTransformer extends Transformer {

@override
Future<String> transformRequest(RequestOptions options) async {
final dynamic data = options.data ?? '';
final Object data = options.data ?? '';
if (data is! String && Transformer.isJsonMimeType(options.contentType)) {
return jsonEncodeCallback(data);
} else if (data is Map) {
Expand Down

0 comments on commit 7115b8d

Please sign in to comment.