refactor: remove unnecessary code lines

This commit is contained in:
2025-07-08 03:08:27 +03:00
parent a2b2711204
commit a64c3360d2

View File

@@ -34,9 +34,6 @@ async fn initialize_state(app: tauri::AppHandle) -> api::Result<()> {
// let update_fut = updater.check(); // let update_fut = updater.check();
// tracing::info!("Initializing app state...");
State::init().await?;
// let check_bar = theseus::init_loading( // let check_bar = theseus::init_loading(
// theseus::LoadingBarType::CheckingForUpdates, // theseus::LoadingBarType::CheckingForUpdates,
// 1.0, // 1.0,
@@ -87,7 +84,7 @@ async fn initialize_state(app: tauri::AppHandle) -> api::Result<()> {
// #[cfg(not(feature = "updater"))] // #[cfg(not(feature = "updater"))]
// { // {
// } // }
tracing::info!("Initializing app state...");
State::init().await?; State::init().await?;
tracing::info!("AstralRinth state successfully initialized."); tracing::info!("AstralRinth state successfully initialized.");
let state = State::get().await?; let state = State::get().await?;
@@ -164,10 +161,10 @@ fn main() {
let mut builder = tauri::Builder::default(); let mut builder = tauri::Builder::default();
#[cfg(feature = "updater")] // #[cfg(feature = "updater")]
{ // {
builder = builder.plugin(tauri_plugin_updater::Builder::new().build()); // builder = builder.plugin(tauri_plugin_updater::Builder::new().build());
} // }
builder = builder builder = builder
.plugin(tauri_plugin_single_instance::init(|app, args, _cwd| { .plugin(tauri_plugin_single_instance::init(|app, args, _cwd| {