Skip to content

Commit b728270

Browse files
committed
fix: MPS_ENABLED_INSPECTORS handling
1 parent a8f5758 commit b728270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func init() {
6767

6868
var enabled = fp.Pipe6(os.Getenv, utils.SplitBy(","), fp.Map(strings.TrimSpace), fp.Filter(lo.IsNotEmpty[string]), fp.Map(strings.ToLower), utils.ToSet[string])("MPS_ENABLED_INSPECTORS")
6969
if len(enabled) > 0 {
70-
Inspectors = fp.Filter(fp.Pipe2(model.Inspector.String, utils.InSet(enabled)))(Inspectors)
70+
Inspectors = fp.Filter(fp.Pipe3(model.Inspector.String, strings.ToLower, utils.InSet(enabled)))(Inspectors)
7171
}
7272
}
7373

0 commit comments

Comments
 (0)