Skip to content

Commit

Permalink
fix(desktop): remove overly-aggressive feature flag check (#11748)
Browse files Browse the repository at this point in the history
  • Loading branch information
milas committed Apr 19, 2024
1 parent 2aa568c commit fd532a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions internal/experimental/experimental.go
Expand Up @@ -71,10 +71,6 @@ func (s *State) NavBar() bool {
return s.determineFeatureState("ComposeNav")
}

func (s *State) AutoFileShares() bool {
return s.determineFeatureState("ComposeAutoFileShares")
}

func (s *State) determineFeatureState(name string) bool {
if s == nil || !s.active || s.desktopValues == nil {
return false
Expand Down
6 changes: 3 additions & 3 deletions pkg/compose/desktop.go
Expand Up @@ -33,12 +33,12 @@ func (s *composeService) SetExperiments(experiments *experimental.State) {
}

func (s *composeService) manageDesktopFileSharesEnabled(ctx context.Context) bool {
// there's some slightly redundancy here to avoid fetching the config if
// we can already tell the feature state - in practice, we
if !s.isDesktopIntegrationActive() || !s.experiments.AutoFileShares() {
if !s.isDesktopIntegrationActive() {
return false
}

// synchronized file share support in Docker Desktop is dependent upon
// a variety of factors (settings, OS, etc), which this endpoint abstracts
fileSharesConfig, err := s.desktopCli.GetFileSharesConfig(ctx)
if err != nil {
logrus.Debugf("Failed to retrieve file shares config: %v", err)
Expand Down

0 comments on commit fd532a3

Please sign in to comment.