Skip to content

Commit af6f0c9

Browse files
committed
fixup! add tests
1 parent 4ad1c52 commit af6f0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/audit/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ func InitRequest[T Auditable](w http.ResponseWriter, p *RequestParams) (*Request
115115
ctx := context.Background()
116116
logCtx := p.Request.Context()
117117

118+
// If no resources were provided, there's nothing we can audit.
118119
if ResourceID(req.Old) == uuid.Nil && ResourceID(req.New) == uuid.Nil {
119-
p.Log.Error(logCtx, "both old and new are nil, cannot audit")
120120
return
121121
}
122122

0 commit comments

Comments
 (0)