Skip to content

Commit

Permalink
remove duplicated switch case
Browse files Browse the repository at this point in the history
The `ErrNotFound` was repeated twice, fix that.
  • Loading branch information
quasilyte authored Dec 10, 2018
1 parent 6ec2571 commit 4027a8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/go-kit/provider/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ func encodeError(_ context.Context, err error, w http.ResponseWriter) {

func codeFrom(err error) int {
switch err {
case ErrNotFound:
return http.StatusNotFound
case ErrNotFound:
return http.StatusNotFound
case ErrUnauthorized:
Expand Down

0 comments on commit 4027a8b

Please sign in to comment.