Skip to content

Commit e299d34

Browse files
oontvoobulbazord
andauthored
Update lldb/source/Core/Telemetry.cpp
Co-authored-by: Alex Langford <[email protected]>
1 parent f4092ed commit e299d34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Core/Telemetry.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ void TelemetryManager::DispatchClientTelemetry(
161161
LLDB_LOG(GetLog(LLDBLog::Object),
162162
"Cannot determine client_data from client-telemetry entry");
163163

164-
auto start_time = GetAsNanosec(dict, "start_time");
165-
if (start_time.has_value())
166-
client_info.start_time += start_time.value();
164+
if (auto maybe_start_time = GetAsNanosec(dict, "start_time"))
165+
client_info.start_time += *maybe_start_time;
167166

168167
auto end_time = GetAsNanosec(dict, "end_time");
169168
if (end_time.has_value()) {

0 commit comments

Comments
 (0)