Skip to content

Conversation

@ZZiigguurraatt
Copy link

small elimination of unnecessary redundant code

@ViktorT-11 ViktorT-11 added the no-changelog This PR is does not require a release notes entry label Mar 21, 2025
@ellemouton
Copy link
Member

@ZZiigguurraatt - could you just update the commit message to use the standard structure pls? 🙏 thanks

@ZZiigguurraatt
Copy link
Author

@ZZiigguurraatt - could you just update the commit message to use the standard structure pls? 🙏 thanks

Where do I find a definition of the standard structure so that I can do that properly?

@guggero
Copy link
Contributor

guggero commented Mar 24, 2025

It's not linked specifically in all our projects but we try to follow these guidelines everywhere: https://github.com/lightningnetwork/lnd/blob/master/docs/code_contribution_guidelines.md

@ZZiigguurraatt
Copy link
Author

OK. how is the new commit message I've just changed to?

@ViktorT-11
Copy link
Contributor

ViktorT-11 commented Mar 24, 2025

OK. how is the new commit message I've just changed to?

I recommend you to also read how commit messages should be prefixed according to the golang convention docs, which is also linked in our contribution guidelines: https://go.dev/doc/contribute#commit_messages

In practise, your commit message title here should be prefixed by the primary affected package (itest in this case). Also, you shouldn't capitalize the first word in the commit title. Other than that, your commit message looks good IMO :).
If anything, the title would potentially be even clearer if phrased as:
itest: utilise createNormalInvoice helper

But I'll let you decide on that phrasing as that's very nit-picky :)

Redundant code is eliminated by re-using the function
`createNormalInvoice` inside the function
`createAndPayNormalInvoiceWithBtc`.
@ZZiigguurraatt
Copy link
Author

OK, looks good now?

@guggero guggero merged commit 25b0b07 into lightninglabs:master Mar 25, 2025
21 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Taproot-Assets Project Board Mar 25, 2025
@ZZiigguurraatt ZZiigguurraatt deleted the itest_cleanups branch March 25, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR is does not require a release notes entry

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants