Skip to content

Commit

Permalink
fix: we are not using go 1.22 yet
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed May 3, 2024
1 parent c679d9f commit 5c39aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/documentation/helm/helm-documentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ var (
{"required", "required $str $val", "fail template with message $str if $val is not provided or is empty"},
}

AllFuncs = slices.Concat(HelmFuncs, SprigFuncs, BuiltinFuncs)
AllFuncs = util.ConcatMultipleSlices([][]HelmDocumentation{HelmFuncs, SprigFuncs, BuiltinFuncs})

CapabilitiesVals = []HelmDocumentation{
{"TillerVersion", ".Capabilities.TillerVersion", "Tiller version"},
Expand Down
2 changes: 2 additions & 0 deletions internal/util/slices.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package util

// TODO: update this to use slices.Concat once we update
// from go 1.21 to go 1.22
func ConcatMultipleSlices[T any](slices [][]T) []T {
var totalLen int

Expand Down

0 comments on commit 5c39aac

Please sign in to comment.