Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed Dec 14, 2024
1 parent 1540341 commit e23b9f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions private/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (

var _ ServiceRegistry = (*serviceRegistry)(nil)

var f protoregistry.Files

type ServiceRegistry interface {
Get(name string) protoreflect.ServiceDescriptor
Reset() error
Expand Down
2 changes: 1 addition & 1 deletion protocel/cel.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (p *protocel) SetDataOnMessage(ctx context.Context, pmsg protoreflect.Proto
case error:
err = tt
default:
err = errors.New(fmt.Sprintf("%+v", tt))
err = fmt.Errorf("%+v", tt)
}
}
}()
Expand Down

0 comments on commit e23b9f1

Please sign in to comment.