From 6920a24ceddb626bf5cf5d6c6c2e1ada9d1a8226 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 8 Nov 2023 05:50:03 +0000 Subject: [PATCH] feat: Updated fluere-plugin/src/downloader.rs --- fluere-plugin/src/downloader.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fluere-plugin/src/downloader.rs b/fluere-plugin/src/downloader.rs index d056a7b..de2beca 100644 --- a/fluere-plugin/src/downloader.rs +++ b/fluere-plugin/src/downloader.rs @@ -3,11 +3,11 @@ use std::process::Command; pub fn download_plugin_from_github(repo_name: &str) -> Result<(), std::io::Error> { let url = format!("https://github.com/{}.git", repo_name); - let path = home_cache_path()?; + let path = home_cache_path().unwrap(); if !path.exists() { std::fs::create_dir_all(path.clone())?; } - let repo_path = path?.join(repo_name.split('/').last().unwrap()); + let repo_path = path.join(repo_name.split('/').last().unwrap()); if repo_path.exists() { Command::new("git") .args(&["fetch", "pull"]) @@ -16,7 +16,7 @@ pub fn download_plugin_from_github(repo_name: &str) -> Result<(), std::io::Error } else { Command::new("git") .args(&["clone", &url]) - .current_dir(&path?) + .current_dir(&path) .output()?; } Ok(())