Skip to content

Commit d978deb

Browse files
srenatusashutosh-narkar
authored andcommitted
cleanup: use errors.Join
Signed-off-by: Stephan Renatus <[email protected]>
1 parent 28a14a3 commit d978deb

File tree

5 files changed

+3
-63
lines changed

5 files changed

+3
-63
lines changed

internal/errors/join.go

Lines changed: 0 additions & 53 deletions
This file was deleted.

internal/errors/join_go1.20.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

plugins/discovery/discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package discovery
88
import (
99
"context"
1010
"encoding/json"
11+
"errors"
1112
"fmt"
1213
"io"
1314
"os"
@@ -22,7 +23,6 @@ import (
2223
"github.com/open-policy-agent/opa/hooks"
2324
bundleUtils "github.com/open-policy-agent/opa/internal/bundle"
2425
cfg "github.com/open-policy-agent/opa/internal/config"
25-
"github.com/open-policy-agent/opa/internal/errors"
2626
"github.com/open-policy-agent/opa/keys"
2727
"github.com/open-policy-agent/opa/logging"
2828
"github.com/open-policy-agent/opa/metrics"

plugins/plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package plugins
77

88
import (
99
"context"
10+
"errors"
1011
"fmt"
1112
mr "math/rand"
1213
"sync"
@@ -24,7 +25,6 @@ import (
2425
"github.com/open-policy-agent/opa/hooks"
2526
bundleUtils "github.com/open-policy-agent/opa/internal/bundle"
2627
cfg "github.com/open-policy-agent/opa/internal/config"
27-
"github.com/open-policy-agent/opa/internal/errors"
2828
initload "github.com/open-policy-agent/opa/internal/runtime/init"
2929
"github.com/open-policy-agent/opa/keys"
3030
"github.com/open-policy-agent/opa/loader"

server/certs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
"crypto/sha256"
1010
"crypto/tls"
1111
"crypto/x509"
12+
"errors"
1213
"fmt"
1314
"io"
1415
"os"
1516
"time"
1617

1718
"github.com/fsnotify/fsnotify"
1819

19-
"github.com/open-policy-agent/opa/internal/errors"
2020
"github.com/open-policy-agent/opa/internal/pathwatcher"
2121
"github.com/open-policy-agent/opa/logging"
2222
)

0 commit comments

Comments
 (0)