mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
Stabilize the audit feature.
This commit is contained in:
@@ -265,11 +265,7 @@ type auditedBackend struct {
|
||||
var _ Backend = (*auditedBackend)(nil)
|
||||
|
||||
func NewAuditedBackend(backend Backend) Backend {
|
||||
if config.Feature("audit") {
|
||||
return &auditedBackend{backend}
|
||||
} else {
|
||||
return backend
|
||||
}
|
||||
return &auditedBackend{backend}
|
||||
}
|
||||
|
||||
// This function does not retry appending audit records; as such, if it returns an error,
|
||||
|
||||
Reference in New Issue
Block a user