chore: enable unnecessary-stmt from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-02-08 10:41:59 +01:00
parent 0bf2252e10
commit 9010d9b13e
3 changed files with 4 additions and 11 deletions

View File

@@ -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,