Skip to content

Conversation

geobeau
Copy link
Contributor

@geobeau geobeau commented Oct 3, 2024

Split was containing empty string. Now we filter them out to avoid rejecting maintenances.

cmd/main.go Outdated
os.Exit(1)
}

nodeDisruptionTypes := utils.FilterEmptyString(strings.Split(nodeDisruptionTypesRaw, ","))
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to use strings.FieldsFunc instead of a custom utility func

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Split was containing empty string. Now we filter them out
to avoid rejecting maintenances.
@geobeau geobeau merged commit 0619e04 into criteo:main Oct 3, 2024
1 check passed
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.

3 participants