Skip to content

Commit

Permalink
review(supermassive): concise if-condition
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb committed Oct 30, 2024
1 parent 21ac0e1 commit dcf4616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/brave_wallet/browser/swap_response_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ mojom::ZeroExQuoteInfoPtr ParseQuoteResponse(const base::Value& json_value,
return swap_response;
}

if (auto quote = ParseQuote(swap_response_value.value()); quote) {
if (auto quote = ParseQuote(swap_response_value.value())) {
swap_response->quote = std::move(quote);
} else {
return nullptr;
Expand Down

0 comments on commit dcf4616

Please sign in to comment.