Skip to content

Commit

Permalink
ToPtr => Ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
0michalsokolowski0 committed Aug 30, 2024
1 parent 8e395b6 commit 8d92c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/stack/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func listStacks() cli.ActionFunc {
return fmt.Errorf("limit must be less than %d", math.MaxInt32)
}

limit = internal.ToPtr(cliCtx.Uint(flagLimit.Name))
limit = internal.Ptr(cliCtx.Uint(flagLimit.Name))
}

var search *string
Expand All @@ -40,7 +40,7 @@ func listStacks() cli.ActionFunc {
return fmt.Errorf("search must be non-empty")
}

search = internal.ToPtr(cliCtx.String(flagSearch.Name))
search = internal.Ptr(cliCtx.String(flagSearch.Name))
}

switch outputFormat {
Expand Down
2 changes: 1 addition & 1 deletion internal/helpers.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package internal

func ToPtr[T any](v T) *T {
func Ptr[T any](v T) *T {
return &v
}

0 comments on commit 8d92c92

Please sign in to comment.