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

Bump up github action versions and linter #1396

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Bump up github action versions and linter #1396

merged 1 commit into from
Oct 4, 2024

Conversation

annakhm
Copy link
Collaborator

@annakhm annakhm commented Oct 3, 2024

And adjust code to new linter settings

And adjust code to new linter settings

Signed-off-by: Anna Khmelnitsky <[email protected]>
Copy link
Member

@salv-orlando salv-orlando left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -251,7 +251,7 @@ func setSnatTranslationInSchema(d *schema.ResourceData, snatTranslation *loadbal
if snatTranslation != nil {
if snatTranslation.Type_ == "LbSnatIpPool" {
elem["type"] = "SNAT_IP_POOL"
if snatTranslation.IpAddresses != nil && len(snatTranslation.IpAddresses) > 0 {
if len(snatTranslation.IpAddresses) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

I did not know that nil slices have 0 len and you can check it without triggering a panic... nice.
I probably spent too many years working with Python.

@annakhm annakhm merged commit 5158252 into master Oct 4, 2024
3 checks passed
@annakhm annakhm deleted the actions-master branch October 4, 2024 16:01
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