mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 04:44:30 +00:00
Remove unused variable
This commit is contained in:
parent
4d9ff5c4ff
commit
f1df6318ba
1 changed files with 1 additions and 3 deletions
|
@ -615,13 +615,12 @@ fn init_panic_hook(app: &App, installation_id: Option<String>, session_id: Strin
|
||||||
|
|
||||||
fn upload_panics_and_crashes(http: Arc<dyn HttpClient>, cx: &mut AppContext) {
|
fn upload_panics_and_crashes(http: Arc<dyn HttpClient>, cx: &mut AppContext) {
|
||||||
let telemetry_settings = *client::TelemetrySettings::get_global(cx);
|
let telemetry_settings = *client::TelemetrySettings::get_global(cx);
|
||||||
let release_channel = cx.global::<ReleaseChannel>().clone();
|
|
||||||
cx.background_executor()
|
cx.background_executor()
|
||||||
.spawn(async move {
|
.spawn(async move {
|
||||||
upload_previous_panics(http.clone(), telemetry_settings)
|
upload_previous_panics(http.clone(), telemetry_settings)
|
||||||
.await
|
.await
|
||||||
.log_err();
|
.log_err();
|
||||||
upload_previous_crashes(http, telemetry_settings, release_channel)
|
upload_previous_crashes(http, telemetry_settings)
|
||||||
.await
|
.await
|
||||||
.log_err()
|
.log_err()
|
||||||
})
|
})
|
||||||
|
@ -703,7 +702,6 @@ static LAST_CRASH_UPLOADED: &'static str = "LAST_CRASH_UPLOADED";
|
||||||
async fn upload_previous_crashes(
|
async fn upload_previous_crashes(
|
||||||
http: Arc<dyn HttpClient>,
|
http: Arc<dyn HttpClient>,
|
||||||
telemetry_settings: client::TelemetrySettings,
|
telemetry_settings: client::TelemetrySettings,
|
||||||
release_channel: ReleaseChannel,
|
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
if !telemetry_settings.diagnostics {
|
if !telemetry_settings.diagnostics {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|
Loading…
Reference in a new issue