Skip to content

Commit f19fc5e

Browse files
committed
fix: do not use interface
Signed-off-by: Milas Bowman <[email protected]>
1 parent 6877c2c commit f19fc5e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

internal/experimental/experimental.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ import (
2828
// globally opt-out of any experimental features in Compose.
2929
const envComposeExperimentalGlobal = "COMPOSE_EXPERIMENTAL"
3030

31-
// FeatureFlagClient queries feature flag state from local configuration.
32-
type FeatureFlagClient interface {
33-
FeatureFlags(ctx context.Context) (desktop.FeatureFlagResponse, error)
34-
}
35-
3631
// State of experiments (enabled/disabled) based on environment and local config.
3732
type State struct {
3833
// active is false if experiments have been opted-out of globally.
@@ -52,7 +47,7 @@ func NewState() *State {
5247
}
5348
}
5449

55-
func (s *State) Load(ctx context.Context, client FeatureFlagClient) error {
50+
func (s *State) Load(ctx context.Context, client *desktop.Client) error {
5651
if !s.active {
5752
// user opted out of experiments globally, no need to load state from
5853
// Desktop

0 commit comments

Comments
 (0)