Skip to content

Commit

Permalink
Fix for token-providers=none
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
  • Loading branch information
nguyer committed Sep 3, 2022
1 parent 9744e21 commit e66afd4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/types/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ func FFEnumArray(ctx context.Context, a []string) ([]fftypes.FFEnum, error) {
}

func FFEnumArrayToStrings(input []fftypes.FFEnum) []string {
s := make([]string, len(input))
for i, e := range input {
s[i] = e.String()
s := make([]string, 0)
for _, e := range input {
if e != "none" {
s = append(s, e.String())
}
}
return s
}

0 comments on commit e66afd4

Please sign in to comment.