chore: run gofmt on state.go & state_test.go

Signed-off-by: Kevin Biebuyck <kbiebuyck@develop-it.net>
This commit is contained in:
Kevin Biebuyck 2025-05-19 15:19:27 +02:00
parent ce376a3496
commit 7c2a344fec
2 changed files with 8 additions and 8 deletions

View File

@ -112,8 +112,8 @@ func (hs *HelmState) UnmarshalYAML(unmarshal func(any) error) error {
// HelmState structure for the helmfile // HelmState structure for the helmfile
type HelmState struct { type HelmState struct {
basePath string basePath string
FilePath string FilePath string
Directory string `yaml:"directory,omitempty"` Directory string `yaml:"directory,omitempty"`
ReleaseSetSpec `yaml:",inline"` ReleaseSetSpec `yaml:",inline"`

View File

@ -2103,8 +2103,8 @@ generated: 2019-05-16T15:42:45.50486+09:00
logger := helmexec.NewLogger(io.Discard, "debug") logger := helmexec.NewLogger(io.Discard, "debug")
basePath := "/src" basePath := "/src"
state := &HelmState{ state := &HelmState{
basePath: basePath, basePath: basePath,
FilePath: "/src/helmfile.yaml", FilePath: "/src/helmfile.yaml",
Directory: "/src", Directory: "/src",
ReleaseSetSpec: ReleaseSetSpec{ ReleaseSetSpec: ReleaseSetSpec{
Releases: []ReleaseSpec{ Releases: []ReleaseSpec{
@ -2172,8 +2172,8 @@ generated: 2019-05-16T15:42:45.50486+09:00
func TestHelmState_ResolveDeps_NoLockFile(t *testing.T) { func TestHelmState_ResolveDeps_NoLockFile(t *testing.T) {
logger := helmexec.NewLogger(io.Discard, "debug") logger := helmexec.NewLogger(io.Discard, "debug")
state := &HelmState{ state := &HelmState{
basePath: "/src", basePath: "/src",
FilePath: "/src/helmfile.yaml", FilePath: "/src/helmfile.yaml",
Directory: "/src", Directory: "/src",
ReleaseSetSpec: ReleaseSetSpec{ ReleaseSetSpec: ReleaseSetSpec{
Releases: []ReleaseSpec{ Releases: []ReleaseSpec{
@ -2223,8 +2223,8 @@ func TestHelmState_ResolveDeps_NoLockFile(t *testing.T) {
func TestHelmState_ResolveDeps_NoLockFile_WithCustomLockFile(t *testing.T) { func TestHelmState_ResolveDeps_NoLockFile_WithCustomLockFile(t *testing.T) {
logger := helmexec.NewLogger(io.Discard, "debug") logger := helmexec.NewLogger(io.Discard, "debug")
state := &HelmState{ state := &HelmState{
basePath: "/src", basePath: "/src",
FilePath: "/src/helmfile.yaml", FilePath: "/src/helmfile.yaml",
Directory: "/src", Directory: "/src",
ReleaseSetSpec: ReleaseSetSpec{ ReleaseSetSpec: ReleaseSetSpec{
LockFile: "custom-lock-file", LockFile: "custom-lock-file",