lang, engine: Remove unneeded error wrapping

These situations basically never fail, and if they do, we certainly
don't need more context. This simplifies things a bit.
This commit is contained in:
James Shubin
2023-04-20 18:02:40 -04:00
parent 7075b8b973
commit c5efe7a17b
6 changed files with 52 additions and 54 deletions

View File

@@ -188,7 +188,7 @@ func (obj *State) Init() error {
FilteredGraph: func() (*pgraph.Graph, error) {
graph, err := pgraph.NewGraph("filtered")
if err != nil {
return nil, errwrap.Wrapf(err, "could not create graph")
return nil, err
}
// filter graph and build a new one...