Skip to content

Commit ce0516c

Browse files
committed
Fix incorrect use of lambda in bool accessor
1 parent 702f106 commit ce0516c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracer/src/Datadog.Trace/Configuration/ConfigurationSources/Telemetry/ConfigurationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public T GetAs<T>(Func<DefaultResult<T>> getDefaultValue, Func<T, bool>? validat
216216
// ****************
217217
public bool? AsBool() => AsBool(defaultValue: null, validator: null, converter: null);
218218

219-
public bool AsBool(bool defaultValue) => AsBool(() => defaultValue, validator: null).Value;
219+
public bool AsBool(bool defaultValue) => AsBool(defaultValue, validator: null);
220220

221221
public bool? AsBool(Func<bool, bool> validator) => AsBool(defaultValue: null, validator, converter: null);
222222

0 commit comments

Comments
 (0)