Skip to content

Commit fe8aee1

Browse files
Update exchange/orchestration-engine/middleware/audit_middleware.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 7b7e6fa commit fe8aee1

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

exchange/orchestration-engine/middleware/audit_middleware.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ var (
2626
// Values are read from config.json via config.AuditConfig
2727
func InitializeAuditConfig(actorType, actorID, targetType string) {
2828
auditConfigOnce.Do(func() {
29-
// Set values with defaults if not provided (defensive programming)
30-
if actorType == "" {
31-
actorType = "SERVICE"
32-
}
33-
if actorID == "" {
34-
actorID = "orchestration-engine"
35-
}
36-
if targetType == "" {
37-
targetType = "SERVICE"
38-
}
29+
// These values are expected to be pre-populated with defaults from the configs package.
3930
auditConfig.actorType = actorType
4031
auditConfig.actorID = actorID
4132
auditConfig.targetType = targetType

0 commit comments

Comments
 (0)