Skip to content

Conversation

@eemcmullan
Copy link
Contributor

No description provided.

Signed-off-by: Emily McMullan <[email protected]>
@eemcmullan eemcmullan changed the title 🐛 Downgrade some deps until go 1.23 🐛 nil check for ref.filepaths & downgrade some deps until go 1.23 Apr 3, 2025
}
// filepaths get rendered as a string and must be converted
if len(cond.Referenced.Filepaths) > 0 {
if cond.Referenced.Filepaths != nil && len(cond.Referenced.Filepaths) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't len() do an implicit nil check?

Copy link
Contributor Author

@eemcmullan eemcmullan Apr 4, 2025

Choose a reason for hiding this comment

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

@pranavgaikwad I thought so, but I was hitting a panic error on this line in kantra. After adding this in, it fixed that.

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