Page MenuHomePhabricator

[electrum] remove indentation levels in get_payment_request
ClosedPublic

Authored by PiRK on Jul 3 2024, 15:12.

Details

Summary

Return early instead of keeping the return values in local variables until the bottom of the function. There is no behavior change.

Test Plan

python test_runner.py
Note that this function is covered by unit tests (I added an assert False line and checked that several tests fail)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
electrum_limit_bip72_wqdl
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29460
Build 58456: Build Diffelectrum-tests
Build 58455: arc lint + arc unit