Skip to content

Commit 1f46264

Browse files
committed
rename err
1 parent 0f26830 commit 1f46264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/coderdtest/authorize.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (r *RecordingAuthorizer) AssertActor(t *testing.T, actor rbac.Subject, did
255255
}
256256

257257
// recordAuthorize is the internal method that records the Authorize() call.
258-
func (r *RecordingAuthorizer) recordAuthorize(subject rbac.Subject, action policy.Action, object rbac.Object, err error) {
258+
func (r *RecordingAuthorizer) recordAuthorize(subject rbac.Subject, action policy.Action, object rbac.Object, authzErr error) {
259259
r.Lock()
260260
defer r.Unlock()
261261

@@ -265,7 +265,7 @@ func (r *RecordingAuthorizer) recordAuthorize(subject rbac.Subject, action polic
265265
Action: action,
266266
Object: object,
267267
},
268-
Err: err,
268+
Err: authzErr,
269269
callers: []string{
270270
// This is a decent stack trace for debugging.
271271
// Some dbauthz calls are a bit nested, so we skip a few.

0 commit comments

Comments
 (0)