Skip to content

Commit

Permalink
Fix bug in converting interface list to string array
Browse files Browse the repository at this point in the history
  • Loading branch information
scastrianni committed May 6, 2024
1 parent d19c8bf commit fcbd240
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion konnect/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ func convertSetToArray(set *schema.Set) []string {
setList := set.List()
retVal := []string{}
for _, s := range setList {
retVal = append(retVal, s.(string))
line := ""
if s != nil {
line = s.(string)
}
retVal = append(retVal, line)
}
return retVal
}
Expand Down

0 comments on commit fcbd240

Please sign in to comment.