Skip to content

Commit 3c62a45

Browse files
committed
Remove redundant code
1 parent ee4d55d commit 3c62a45

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dio/lib/src/dio_mixin.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,9 @@ abstract class DioMixin implements Dio {
699699
return false;
700700
});
701701
} else if (data is FormData) {
702-
if (data is FormData) {
703-
options.headers[Headers.contentTypeHeader] =
704-
'multipart/form-data; boundary=${data.boundary}';
705-
}
702+
options.headers[Headers.contentTypeHeader] =
703+
'multipart/form-data; boundary=${data.boundary}';
704+
706705
stream = data.finalize();
707706
length = data.length;
708707
options.headers[Headers.contentLengthHeader] = length.toString();

0 commit comments

Comments
 (0)