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

bugfix: fix interface sort order #171

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

breml
Copy link
Collaborator

@breml breml commented Nov 20, 2024

This should fix the flake acceptance tests where ipv4 address is not set, e.g. https://github.com/lxc/terraform-provider-incus/actions/runs/11933941679/job/33262025197#step:8:242

favorWithValue := func(a, b string) bool {
if a == "" && b == "" {
return false
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: line break

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a line break here.

Do you have some rules I can align to, about when and where you would like to have line breaks?

My feeling says: either I omit the line breaks, since this is a very short function, where all the pieces belong together (no real paragraphs in the sense that they touch different things) or I would add an other new line also after the second if block (before the return).

Copy link
Member

Choose a reason for hiding this comment

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

Essentially line break after every block is the coding style we've been going with.

Signed-off-by: Lucas Bremgartner <[email protected]>
@breml breml force-pushed the fix-flaky-network-test branch from 0566f99 to 09a4ecf Compare November 21, 2024 05:36
@breml breml requested a review from stgraber November 22, 2024 09:40
@stgraber stgraber merged commit cebcc10 into lxc:main Nov 22, 2024
9 of 10 checks passed
@breml breml deleted the fix-flaky-network-test branch November 25, 2024 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants