Add files via upload (Sourcery refactored)#7
Add files via upload (Sourcery refactored)#7sourcery-ai[bot] wants to merge 1 commit intocurly60e-patch-4from
Conversation
| if db is True: | ||
| clear() | ||
| blogo() | ||
| tick() | ||
| bitLN['pd'] = "PAID" | ||
| pickle.dump(bitLN, open("lnbitSN.conf", "wb")) | ||
| createFileConnLNBits() | ||
| break | ||
| else: | ||
| if db is not True: | ||
| continue | ||
|
|
||
| clear() | ||
| blogo() | ||
| tick() | ||
| bitLN['pd'] = "PAID" | ||
| pickle.dump(bitLN, open("lnbitSN.conf", "wb")) | ||
| createFileConnLNBits() | ||
| break |
There was a problem hiding this comment.
Function aaccPPiLNBits refactored with the following changes:
- Swap if/else branches (
swap-if-else-branches) - Remove unnecessary else after guard condition (
remove-unnecessary-else)
| if db is True: | ||
| clear() | ||
| blogo() | ||
| tick() | ||
| bitLN['pd'] = "PAID" | ||
| pickle.dump(bitLN, open("lnpaySN.conf", "wb")) | ||
| createFileConnLNPay() | ||
| break | ||
| else: | ||
| if db is not True: | ||
| continue | ||
|
|
||
| clear() | ||
| blogo() | ||
| tick() | ||
| bitLN['pd'] = "PAID" | ||
| pickle.dump(bitLN, open("lnpaySN.conf", "wb")) | ||
| createFileConnLNPay() | ||
| break |
There was a problem hiding this comment.
Function aaccPPiLNPay refactored with the following changes:
- Swap if/else branches (
swap-if-else-branches) - Remove unnecessary else after guard condition (
remove-unnecessary-else)
| if db is True: | ||
| clear() | ||
| blogo() | ||
| tick() | ||
| bitLN['pd'] = "PAID" | ||
| pickle.dump(bitLN, open("opennodeSN.conf", "wb")) | ||
| createFileConnOpenNode() | ||
| break | ||
| else: | ||
| if db is not True: | ||
| continue | ||
|
|
||
| clear() | ||
| blogo() | ||
| tick() | ||
| bitLN['pd'] = "PAID" | ||
| pickle.dump(bitLN, open("opennodeSN.conf", "wb")) | ||
| createFileConnOpenNode() | ||
| break |
There was a problem hiding this comment.
Function aaccPPiOpenNode refactored with the following changes:
- Swap if/else branches (
swap-if-else-branches) - Remove unnecessary else after guard condition (
remove-unnecessary-else)
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.15%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Let us know what you think of it by mentioning @sourcery-ai in a comment. |
Pull Request #6 refactored by Sourcery.
If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Review changes via command line
To manually merge these changes, make sure you're on the
curly60e-patch-4branch, then run: