mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
chore: enable unnecessary-stmt from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -37,8 +37,7 @@ func FromGRPCError(err error) error {
|
||||
}
|
||||
|
||||
for _, detail := range statusErr.Details() {
|
||||
switch t := detail.(type) {
|
||||
case *proto.Stack:
|
||||
if t, ok := detail.(*proto.Stack); ok {
|
||||
return &ProtoStackError{
|
||||
error: err,
|
||||
stack: t,
|
||||
|
||||
Reference in New Issue
Block a user