Skip to content

Commit

Permalink
cleanup: use errors.Join
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored and ashutosh-narkar committed Feb 27, 2024
1 parent 28a14a3 commit d978deb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 63 deletions.
53 changes: 0 additions & 53 deletions internal/errors/join.go

This file was deleted.

7 changes: 0 additions & 7 deletions internal/errors/join_go1.20.go

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package discovery
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"os"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package plugins

import (
"context"
"errors"
"fmt"
mr "math/rand"
"sync"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion server/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"io"
"os"
"time"

"github.com/fsnotify/fsnotify"

"github.com/open-policy-agent/opa/internal/errors"
"github.com/open-policy-agent/opa/internal/pathwatcher"
"github.com/open-policy-agent/opa/logging"
)
Expand Down

0 comments on commit d978deb

Please sign in to comment.