File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/BenchmarkDotNet/Validators Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,9 @@ public IEnumerable<ValidationError> Validate(ValidationParameters validationPara
30
30
{
31
31
yield return new ValidationError (
32
32
TreatsWarningsAsErrors ,
33
- $ "Assembly { group . Key . GetName ( ) . Name } which defines benchmarks references non-optimized { referencedAssemblyName . Name } "
34
- + ( TreatsWarningsAsErrors
35
- ? $ "{ Environment . NewLine } \t If you own this dependency, please, build it in RELEASE." +
36
- $ "{ Environment . NewLine } \t If you don't, you can disable this policy by using 'config.With(ConfigOptions.DisableOptimizationsValidator)'."
37
- : string . Empty ) ) ;
33
+ $ "Assembly { group . Key . GetName ( ) . Name } which defines benchmarks references non-optimized { referencedAssemblyName . Name } " +
34
+ $ "{ Environment . NewLine } \t If you own this dependency, please, build it in RELEASE." +
35
+ $ "{ Environment . NewLine } \t If you don't, you can disable this policy by using 'config.With(ConfigOptions.DisableOptimizationsValidator)'.") ;
38
36
}
39
37
}
40
38
@@ -52,4 +50,4 @@ public IEnumerable<ValidationError> Validate(ValidationParameters validationPara
52
50
}
53
51
}
54
52
}
55
- }
53
+ }
You can’t perform that action at this time.
0 commit comments