Skip to content

Commit

Permalink
fix(intrinsics): SplitPtr also as string
Browse files Browse the repository at this point in the history
  • Loading branch information
xrn authored and rubenfonseca committed Jul 12, 2022
1 parent 286dd4c commit 86436f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudformation/intrinsics.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ func Split(delimiter, source interface{}) string {
return encode(fmt.Sprintf(`{ "Fn::Split" : [ %q, %q ] }`, delimiter, source))
}

func SplitPtr(delimiter, source interface{}) *[]string {
return Strings(Split(delimiter, source))
func SplitPtr(delimiter, source interface{}) *string {
return String(Split(delimiter, source))
}

// Equals compares if two values are equal. Returns true if the two values are equal or false if they aren't.
Expand Down

0 comments on commit 86436f5

Please sign in to comment.