Skip to content

Commit 120508b

Browse files
committed
fix bug
1 parent c66a5e4 commit 120508b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/datadog/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Value pick(const Optional<Value>& from_env, const Optional<Value>& from_user,
113113
}
114114

115115
(*telemetry_configs)[config_name] = std::move(telemetry_entries);
116-
if (!telemetry_entries.empty()) {
116+
if (!(*telemetry_configs)[config_name].empty()) {
117117
(*metadata)[config_name] = (*telemetry_configs)[config_name].back();
118118
}
119119

0 commit comments

Comments
 (0)