mirror of
https://github.com/docker/compose.git
synced 2025-06-02 04:40:14 +02:00
fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
827e864ed0
commit
25ca75db4d
@ -217,7 +217,7 @@ func (s *ServiceProxy) List(ctx context.Context, options ListOptions) ([]Stack,
|
|||||||
return s.ListFn(ctx, options)
|
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) {
|
func (s *ServiceProxy) Config(ctx context.Context, project *types.Project, options ConfigOptions) ([]byte, error) {
|
||||||
if s.ConfigFn == nil {
|
if s.ConfigFn == nil {
|
||||||
return nil, ErrNotImplemented
|
return nil, ErrNotImplemented
|
||||||
|
@ -29,7 +29,7 @@ func Contains[T any](origin []T, element T) bool {
|
|||||||
return false
|
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 {
|
func Remove[T any](origin []T, elements ...T) []T {
|
||||||
var filtered []T
|
var filtered []T
|
||||||
for _, v := range origin {
|
for _, v := range origin {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user