cleanup: use errors.Join

Signed-off-by: Stephan Renatus <stephan@styra.com>
This commit is contained in:
Stephan Renatus
2024-02-27 11:09:23 +01:00
committed by Ashutosh Narkar
parent 28a14a3b3b
commit d978deb8c7
5 changed files with 3 additions and 63 deletions
+1 -1
View File
@@ -8,6 +8,7 @@ package discovery
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"os"
@@ -22,7 +23,6 @@ import (
"github.com/open-policy-agent/opa/hooks"
bundleUtils "github.com/open-policy-agent/opa/internal/bundle"
cfg "github.com/open-policy-agent/opa/internal/config"
"github.com/open-policy-agent/opa/internal/errors"
"github.com/open-policy-agent/opa/keys"
"github.com/open-policy-agent/opa/logging"
"github.com/open-policy-agent/opa/metrics"
+1 -1
View File
@@ -7,6 +7,7 @@ package plugins
import (
"context"
"errors"
"fmt"
mr "math/rand"
"sync"
@@ -24,7 +25,6 @@ import (
"github.com/open-policy-agent/opa/hooks"
bundleUtils "github.com/open-policy-agent/opa/internal/bundle"
cfg "github.com/open-policy-agent/opa/internal/config"
"github.com/open-policy-agent/opa/internal/errors"
initload "github.com/open-policy-agent/opa/internal/runtime/init"
"github.com/open-policy-agent/opa/keys"
"github.com/open-policy-agent/opa/loader"