Ver Fonte

Merge pull request #10768 from cloud-native-team/v2

fix some comments
Guillaume Lours há 2 anos atrás
pai
commit
b1334b8dfc
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      pkg/api/proxy.go
  2. 1 1
      pkg/utils/slices.go

+ 1 - 1
pkg/api/proxy.go

@@ -217,7 +217,7 @@ func (s *ServiceProxy) List(ctx context.Context, options ListOptions) ([]Stack,
 	return s.ListFn(ctx, options)
 }
 
-// Convert implements Service interface
+// Config implements Service interface
 func (s *ServiceProxy) Config(ctx context.Context, project *types.Project, options ConfigOptions) ([]byte, error) {
 	if s.ConfigFn == nil {
 		return nil, ErrNotImplemented

+ 1 - 1
pkg/utils/slices.go

@@ -29,7 +29,7 @@ func Contains[T any](origin []T, element T) bool {
 	return false
 }
 
-// RemoveAll removes all elements from origin slice
+// Remove removes all elements from origin slice
 func Remove[T any](origin []T, elements ...T) []T {
 	var filtered []T
 	for _, v := range origin {