Skip to content

Commit

Permalink
Remove mistakenly commited changes
Browse files Browse the repository at this point in the history
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
  • Loading branch information
Warashi committed Sep 27, 2024
1 parent 921e4d0 commit 7195cc8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/config/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"path/filepath"
"strings"

"github.com/creasty/defaults"
"github.com/pipe-cd/pipecd/pkg/model"
)

Expand Down Expand Up @@ -61,22 +60,6 @@ type GenericApplicationSpec struct {
DriftDetection *DriftDetection `json:"driftDetection"`
}

func (s *GenericApplicationSpec) UnmarshalJSON(data []byte) error {
type Alias GenericApplicationSpec
var aux Alias

if err := json.Unmarshal(data, &aux); err != nil {
return err
}

if err := defaults.Set(&aux); err != nil {
return err
}

*s = GenericApplicationSpec(aux)
return nil
}

type DeploymentPlanner struct {
// Disable auto-detecting to use QUICK_SYNC or PROGRESSIVE_SYNC.
// Always use the speficied pipeline for all deployments.
Expand Down

0 comments on commit 7195cc8

Please sign in to comment.