Skip to content

Commit

Permalink
i now remember why i added replace
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Mar 26, 2024
1 parent 72a4119 commit f6382f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn run() -> Result<()> {

let downloads_dir = directories::get_downloads_directory(&config).await?;
let used_version = version::get_current_version(&config).await?;
let version = semver::Version::parse(&used_version).ok();
let version = semver::Version::parse(&used_version.replace('v', "")).ok();
let platform = helpers::get_platform_name(&version);

let location = downloads_dir
Expand All @@ -72,7 +72,7 @@ async fn run() -> Result<()> {
} else if exe_name.contains("nvim") {
let downloads_dir = directories::get_downloads_directory(&config).await?;
let used_version = version::get_current_version(&config).await?;
let version = semver::Version::parse(&used_version).ok();
let version = semver::Version::parse(&used_version.replace('v', "")).ok();
let platform = helpers::get_platform_name(&version);

let location = downloads_dir
Expand Down

0 comments on commit f6382f6

Please sign in to comment.