mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
redundant break statement.
This commit is contained in:
parent
d0d3e6b2d2
commit
7628554356
@ -63,10 +63,8 @@ func errResponse(input interface{}) *ErrResponse {
|
|||||||
case *error:
|
case *error:
|
||||||
e := err.(error)
|
e := err.(error)
|
||||||
res.Details = e.Error()
|
res.Details = e.Error()
|
||||||
break
|
|
||||||
default:
|
default:
|
||||||
res.Details = fmt.Sprintf("%+v", err)
|
res.Details = fmt.Sprintf("%+v", err)
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user