Skip to content

Commit 133dba7

Browse files
committed
refactor(download): fixes Response type reference in segment/download.go
In segment/download.go, openpipeline.Response was referenced instead of segments.Response. This PR fixes this. It didn't really break anything, though, because both are type aliases for api.Response.
1 parent 985cb22 commit 133dba7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/download/segment/download.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"context"
2121
"fmt"
2222

23-
"github.com/dynatrace/dynatrace-configuration-as-code-core/clients/openpipeline"
2423
"github.com/dynatrace/dynatrace-configuration-as-code-core/clients/segments"
2524
"github.com/dynatrace/dynatrace-configuration-as-code/v2/internal/log"
2625
"github.com/dynatrace/dynatrace-configuration-as-code/v2/internal/log/field"
@@ -58,7 +57,7 @@ func Download(ctx context.Context, client DownloadSegmentClient, projectName str
5857
return result, nil
5958
}
6059

61-
func createConfig(projectName string, response openpipeline.Response) (config.Config, error) {
60+
func createConfig(projectName string, response segments.Response) (config.Config, error) {
6261
jsonObj, err := templatetools.NewJSONObject(response.Data)
6362
if err != nil {
6463
return config.Config{}, fmt.Errorf("failed to unmarshal payload: %w", err)

0 commit comments

Comments
 (0)