Skip to content

Commit

Permalink
🚧 Move sorting available encoders into func
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Jul 1, 2020
1 parent 6320669 commit 7b38866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pencode/encoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (c *Chain) GetEncoders() []string {
for e := range availableEncoders {
names = append(names, e)
}
sort.Strings(names)
return names
}

Expand All @@ -89,7 +90,6 @@ func (c *Chain) Usage() {

// Sort the encoders alphabetically
names := c.GetEncoders()
sort.Strings(names)

for _, n := range names {
v := availableEncoders[n]
Expand Down

0 comments on commit 7b38866

Please sign in to comment.