File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
utbot-framework/src/main/kotlin/org/utbot/taint Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -127,12 +127,9 @@ fun constructDefaultProvider(
127
127
taintResourcesConfigPath : String = "taint/config.yaml"
128
128
): TaintConfigurationProvider {
129
129
val resourcesConfig = TaintConfigurationProviderResources (taintResourcesConfigPath)
130
- val cachedResourcesConfig = TaintConfigurationProviderCached ( " resources " , resourcesConfig )
130
+ val userConfigOrNull = taintUserConfigPath?. let (:: TaintConfigurationProviderUserRules )
131
131
132
- val cachedUserConfigOrNull = taintUserConfigPath?.let {
133
- val userConfig = TaintConfigurationProviderUserRules (taintUserConfigPath)
134
- TaintConfigurationProviderCached (" user" , userConfig)
135
- }
132
+ val cachedResourcesConfig = TaintConfigurationProviderCached (" resources" , resourcesConfig)
136
133
137
- return TaintConfigurationProviderCombiner (listOfNotNull(cachedUserConfigOrNull , cachedResourcesConfig))
134
+ return TaintConfigurationProviderCombiner (listOfNotNull(userConfigOrNull , cachedResourcesConfig))
138
135
}
You can’t perform that action at this time.
0 commit comments