Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Fadhil committed Sep 30, 2024
1 parent 3cbb0dd commit 2ded9f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ impl Telemetry {
let telemetry_data = {
let content = std::fs::read_to_string(telemetry_file_path);
match content {
Ok(data) => match serde_json::from_str::<Vec<TelemetryData>>(&data) {
Ok(data) => data,
Err(_) => Vec::new(),
},
Ok(data) => serde_json::from_str::<Vec<TelemetryData>>(&data).unwrap_or_default(),
Err(_) => Vec::new(),
}
};
Expand Down

0 comments on commit 2ded9f0

Please sign in to comment.