Skip to content

Commit

Permalink
remove empty list check
Browse files Browse the repository at this point in the history
  • Loading branch information
VinnyHC committed Aug 20, 2024
1 parent d96fe27 commit 526b17d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions internal/commands/vaultsecrets/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ func getAllSecretsForEnv(opts *RunOpts) ([]string, error) {
secs, err := fetchPaginatedSecrets(opts)
if err != nil {
return nil, err
} else if len(secs) == 0 {
return nil, fmt.Errorf("no secrets returned from app")
}

result := os.Environ()
Expand Down
6 changes: 0 additions & 6 deletions internal/commands/vaultsecrets/run/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ func TestRunRun(t *testing.T) {
},
},
},
{
Name: "No Secrets",
RespErr: false,
ErrMsg: "no secrets returned from app",
Secrets: []*preview_models.Secrets20231128OpenSecret{},
},
}

for _, c := range cases {
Expand Down

0 comments on commit 526b17d

Please sign in to comment.