Skip to content

Commit

Permalink
refactor(segments): Remove unnecessary Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
Laubi committed Feb 6, 2025
1 parent 21b0f4e commit d8df4c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/monaco/download/download_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package download
import (
"context"
"errors"
"fmt"
"net/http"
"net/url"

Expand All @@ -33,7 +32,6 @@ import (
"github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/client"
clientAuth "github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/client/auth"
versionClient "github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/client/version"
"github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/config"
"github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/manifest"
)

Expand Down Expand Up @@ -100,7 +98,7 @@ func GetDownloadCommand(fs afero.Fs, command Command) (cmd *cobra.Command) {
}

if featureflags.Segments.Enabled() {
cmd.Flags().BoolVar(&f.onlySegments, fmt.Sprintf("only-%ss", config.SegmentID), false, fmt.Sprintf("Only download %s configurations, skip all other configuration types", config.SegmentID))
cmd.Flags().BoolVar(&f.onlySegments, "only-segments", false, "Only download segment configurations, skip all other configuration types")
}

err := errors.Join(
Expand Down

0 comments on commit d8df4c9

Please sign in to comment.