Skip to content

Commit

Permalink
Use builtin string join
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Schroeder <[email protected]>
  • Loading branch information
helius-kurt and SEJeff committed May 6, 2024
1 parent 252add0 commit edc5700
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ type PeerNode struct {
type trustedProviders []string

func (i *trustedProviders) String() string {
var str string = ""
for _, v := range *i {
str += v + ","
}
return str
return strings.Join(string, ",")
}

func (i *trustedProviders) Set(value string) error {
Expand Down

0 comments on commit edc5700

Please sign in to comment.