Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce indent #2533

Merged
merged 1 commit into from
Aug 9, 2024
Merged

reduce indent #2533

merged 1 commit into from
Aug 9, 2024

Conversation

bw-solana
Copy link

Problem

The meat of the write_transaction_status_batch functions is several indents deep.

Summary of Changes

Reduce one level of indentation using let/else/continue pattern

commission: reward_info.commission,
})
.collect(),
let Ok(committed_tx) = commit_result else {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these few lines are the only real change. The rest of the diff is just changing the indent

@bw-solana bw-solana marked this pull request as ready for review August 9, 2024 15:23
Copy link

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@bw-solana bw-solana merged commit f1a2279 into anza-xyz:master Aug 9, 2024
41 checks passed
@bw-solana bw-solana deleted the tss_indent branch August 9, 2024 17:36
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants