Skip to content

Commit

Permalink
reformat with gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbe committed Nov 12, 2023
1 parent e9ff03f commit 99522a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkgs/sops-install-secrets/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (app *appContext) validateSecret(secret *secret) error {
return fmt.Errorf("Unsupported format %s for secret %s", secret.Format, secret.Name)
}

files := []secretFile {};
files := []secretFile{}
for _, sopsFile := range secret.SopsFiles {
file, ok := app.secretFiles[sopsFile]
if !ok {
Expand Down
10 changes: 5 additions & 5 deletions pkgs/sops-install-secrets/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func testGPG(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: path.Join(testdir.path, "test-target"),
Mode: "0400",
RestartUnits: []string{"affected-service"},
Expand Down Expand Up @@ -219,7 +219,7 @@ func testSSHKey(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: target,
Mode: "0400",
RestartUnits: []string{"affected-service"},
Expand Down Expand Up @@ -252,7 +252,7 @@ func TestAge(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: target,
Mode: "0400",
RestartUnits: []string{"affected-service"},
Expand Down Expand Up @@ -285,7 +285,7 @@ func TestAgeWithSSH(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: target,
Mode: "0400",
RestartUnits: []string{"affected-service"},
Expand Down Expand Up @@ -319,7 +319,7 @@ func TestValidateManifest(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: path.Join(testdir.path, "test-target"),
Mode: "0400",
RestartUnits: []string{},
Expand Down

0 comments on commit 99522a3

Please sign in to comment.