Skip to content

Commit cb4d92f

Browse files
committed
unshadow, unused-reciever
1 parent e53d709 commit cb4d92f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

coderd/authzquery/authz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (e NotAuthorizedError) Error() string {
3535

3636
// Unwrap will always unwrap to a sql.ErrNoRows so the API returns a 404.
3737
// So 'errors.Is(err, sql.ErrNoRows)' will always be true.
38-
func (e NotAuthorizedError) Unwrap() error {
38+
func (NotAuthorizedError) Unwrap() error {
3939
return sql.ErrNoRows
4040
}
4141

coderd/authzquery/methods_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,18 +258,18 @@ func asserts(inputs ...any) []AssertRBAC {
258258
return out
259259
}
260260

261-
func (suite *MethodTestSuite) TestExtraMethods() {
262-
suite.Run("GetProvisionerDaemons", func() {
263-
suite.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
261+
func (s *MethodTestSuite) TestExtraMethods() {
262+
s.Run("GetProvisionerDaemons", func() {
263+
s.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
264264
d, err := db.InsertProvisionerDaemon(context.Background(), database.InsertProvisionerDaemonParams{
265265
ID: uuid.New(),
266266
})
267267
require.NoError(t, err, "insert provisioner daemon")
268268
return methodCase(inputs(), asserts(d, rbac.ActionRead))
269269
})
270270
})
271-
suite.Run("GetDeploymentDAUs", func() {
272-
suite.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
271+
s.Run("GetDeploymentDAUs", func() {
272+
s.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
273273
return methodCase(inputs(), asserts(rbac.ResourceUser.All(), rbac.ActionRead))
274274
})
275275
})

0 commit comments

Comments
 (0)