Skip to content

Commit 527dad4

Browse files
committed
fix: correct typo in isSwarmEnabled method name
1 parent 59f04b8 commit 527dad4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/compose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ var swarmEnabled = struct {
478478
err error
479479
}{}
480480

481-
func (s *composeService) isSWarmEnabled(ctx context.Context) (bool, error) {
481+
func (s *composeService) isSwarmEnabled(ctx context.Context) (bool, error) {
482482
swarmEnabled.once.Do(func() {
483483
info, err := s.apiClient().Info(ctx)
484484
if err != nil {

pkg/compose/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ func (s *composeService) resolveExternalNetwork(ctx context.Context, n *types.Ne
15241524
case 1:
15251525
return networks[0].ID, nil
15261526
case 0:
1527-
enabled, err := s.isSWarmEnabled(ctx)
1527+
enabled, err := s.isSwarmEnabled(ctx)
15281528
if err != nil {
15291529
return "", err
15301530
}

0 commit comments

Comments
 (0)