Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f71c2a

Browse files
committed
clean up friendly string
1 parent f9d28b0 commit 7f71c2a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

coderd/audit.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,19 +270,6 @@ func auditLogDescription(alog database.GetAuditLogsOffsetRow, additionalFields a
270270
return str
271271
}
272272

273-
// Strings for starting/stopping workspace builds follow the below format:
274-
// "{user | 'Coder automatically'} started build #{build_number} for workspace {target}"
275-
// where target is a workspace (name) instead of a workspace build
276-
// passed in on the FE via AuditLog.AdditionalFields rather than derived in request.go:35
277-
if alog.ResourceType == database.ResourceTypeWorkspaceBuild && alog.Action != database.AuditActionDelete {
278-
if len(additionalFields.BuildNumber) == 0 {
279-
str += " build for"
280-
} else {
281-
str += fmt.Sprintf(" build #%s for",
282-
additionalFields.BuildNumber)
283-
}
284-
}
285-
286273
// We don't display the name (target) for git ssh keys. It's fairly long and doesn't
287274
// make too much sense to display.
288275
if alog.ResourceType == database.ResourceTypeGitSshKey {

0 commit comments

Comments
 (0)