Skip to content

remove unnecessary return info#4889

Open
faithokamoto wants to merge 1 commit intomasterfrom
simplify-return
Open

remove unnecessary return info#4889
faithokamoto wants to merge 1 commit intomasterfrom
simplify-return

Conversation

@faithokamoto
Copy link
Copy Markdown
Contributor

Changelog Entry

To be copied to the draft changelog by merger:

  • Simplify an internal return value for align_sequence_between()

Description

I saw a TODO and thought I could tackle it for kicks. Indeed, while align_sequence_between()/align_sequence_between_consistently() used to return a pair of values, the only thing we actually ever used those return values for was checking whether the first was nonzero or not. So now I simply have it return whether that first value would have been zero. Makes it easier to interpret. Also possibly saves a negligible amount of overhead that would have been spent constructing the pair.

@faithokamoto
Copy link
Copy Markdown
Contributor Author

Mac failed with Could not resolve host: raw.githubusercontent.com when I think it was trying to download something. @adamnovak do I just re-run or is there something I should fix?

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