Skip to content

Commit

Permalink
chore: rename add err prefix to unsupportedCheckType error
Browse files Browse the repository at this point in the history
Makes the linter happy
  • Loading branch information
nadiamoe authored and Nadia Santalla committed Dec 17, 2024
1 parent 1e3831a commit 64b0cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/prober/prober.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/rs/zerolog"
)

const unsupportedCheckType = error_types.BasicError("unsupported check type")
const errUnsupportedCheckType = error_types.BasicError("unsupported check type")

type Prober interface {
Name() string
Expand Down Expand Up @@ -119,7 +119,7 @@ func (f proberFactory) New(ctx context.Context, logger zerolog.Logger, check mod
target = check.Target

default:
return nil, "", unsupportedCheckType
return nil, "", errUnsupportedCheckType
}

return p, target, err
Expand Down
2 changes: 1 addition & 1 deletion internal/prober/prober_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ func TestProberFactoryCoverage(t *testing.T) {
require.NoError(t, check.FromSM(sm.GetCheckInstance(checkType)))

_, _, err := pf.New(ctx, testLogger, check)
require.NotErrorIs(t, err, unsupportedCheckType)
require.NotErrorIs(t, err, errUnsupportedCheckType)
}
}

0 comments on commit 64b0cb1

Please sign in to comment.