From d9f1f82923d75b2cdff835df058dbc72d0c7976f Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 3 Sep 2025 13:33:23 -0400 Subject: [PATCH] style: 4matting --- pkg/client/configs_test.go | 4 ++-- pkg/client/secret_test.go | 2 +- pkg/deploy/utils.go | 1 - pkg/deploy/utils_test.go | 17 ++++++++--------- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/pkg/client/configs_test.go b/pkg/client/configs_test.go index a247586f..51e8a6b5 100644 --- a/pkg/client/configs_test.go +++ b/pkg/client/configs_test.go @@ -74,7 +74,7 @@ func TestGetConfigNameAndVersion(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { name, version, err := GetConfigNameAndVersion(tt.fullName, tt.stackName) - + if tt.expectError { assert.Error(t, err) assert.Empty(t, name) @@ -86,4 +86,4 @@ func TestGetConfigNameAndVersion(t *testing.T) { } }) } -} \ No newline at end of file +} diff --git a/pkg/client/secret_test.go b/pkg/client/secret_test.go index b466d151..4636a2d3 100644 --- a/pkg/client/secret_test.go +++ b/pkg/client/secret_test.go @@ -55,4 +55,4 @@ func TestGetSecretNames(t *testing.T) { assert.Equal(t, tt.expected, result, tt.description) }) } -} \ No newline at end of file +} diff --git a/pkg/deploy/utils.go b/pkg/deploy/utils.go index f5fd43c7..30ce4c77 100644 --- a/pkg/deploy/utils.go +++ b/pkg/deploy/utils.go @@ -35,7 +35,6 @@ func MergeAbraShEnv(recipe recipe.Recipe, env envfile.AppEnv) error { return nil } - // GetConfigsForStack retrieves all Docker configs attached to services in a given stack. func GetConfigsForStack(cl *dockerClient.Client, app appPkg.App) (map[string]string, error) { filters, err := app.Filters(false, false) diff --git a/pkg/deploy/utils_test.go b/pkg/deploy/utils_test.go index f9e80c55..a0735d14 100644 --- a/pkg/deploy/utils_test.go +++ b/pkg/deploy/utils_test.go @@ -8,12 +8,12 @@ import ( func TestGetImageNameAndTag(t *testing.T) { tests := []struct { - name string - imageName string - expectedName string - expectedTag string - expectError bool - description string + name string + imageName string + expectedName string + expectedTag string + expectError bool + description string }{ { name: "standard image with tag", @@ -67,13 +67,12 @@ func TestGetImageNameAndTag(t *testing.T) { expectError: true, description: "should error on empty image name", }, - } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { name, tag, err := GetImageNameAndTag(tt.imageName) - + if tt.expectError { assert.Error(t, err) assert.Empty(t, name) @@ -85,4 +84,4 @@ func TestGetImageNameAndTag(t *testing.T) { } }) } -} \ No newline at end of file +}