Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
one early return
  • Loading branch information
denrase committed Jul 25, 2023
commit 3485b4f6a89bb72bce9e46c2239b22fe428c87af
5 changes: 1 addition & 4 deletions dio/lib/src/dio_event_processor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ class DioEventProcessor implements EventProcessor {

/// Returns the response data, if possible according to the users settings.
Object? _getResponseData(Object? data, ResponseType responseType) {
if (!_options.sendDefaultPii) {
return null;
}
if (data == null) {
if (!_options.sendDefaultPii || data == null) {
return null;
}
switch (responseType) {
Expand Down