Skip to content

Commit

Permalink
Remove quick exit from Error().
Browse files Browse the repository at this point in the history
It does not have much benefit and only obscures code
  • Loading branch information
epels committed Mar 16, 2019
1 parent db2cf5e commit 9e497ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions voice/voice.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ func errorReader(b []byte) error {
}

func (e ErrorResponse) Error() string {
if len(e.Errors) == 1 {
return e.Errors[0].Error()
}

errStrings := make([]string, len(e.Errors))
for i, v := range e.Errors {
errStrings[i] = v.Error()
Expand Down

0 comments on commit 9e497ba

Please sign in to comment.