use crate::commands::security::ensure_main_window;

/// Check for an available update. Returns Some(version_string) if one is
/// available, None if already up to date, and Err if the check fails.
#[tauri::command]
pub async fn check_for_update(window: tauri::WebviewWindow) -> Result<Option<String>, String> {
    ensure_main_window(&window)?;
    Ok(None)
}
