Skip to content

Commit

Permalink
refactor: update null check
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-deriv committed Jul 11, 2024
1 parent 34a810a commit c2e2bdf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class CallLogController extends NetworkLogsController {
json.decode(element.body)['req_id'] ==
json.decode(vm.body)['req_id'],
);
// ignore: unnecessary_null_comparison
if (request != null) {
request.pair = vm;
} else {
Expand All @@ -63,8 +64,6 @@ class CallLogController extends NetworkLogsController {
}
}



class CallLogVM extends NetworkLogVM {
CallLogVM? pair;
CallLogVM({
Expand Down

0 comments on commit c2e2bdf

Please sign in to comment.