Skip to content

Commit

Permalink
fix VRF with IP ranges test
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jan 12, 2024
1 parent 3cee584 commit b9136db
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/converters/converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ func StringArrToIfArr(sli []string) []interface{} {
}

func IfArrToStringArr(ifaceArr []interface{}) []string {
var arr []string
for _, v := range ifaceArr {
if v == nil {
continue
}
arr = append(arr, v.(string))
arr := make([]string, len(ifaceArr))
for i, v := range ifaceArr {
arr[i] = fmt.Sprint(v)
}
return arr
}
Expand Down

0 comments on commit b9136db

Please sign in to comment.