Skip to content

Commit

Permalink
Properly fix lint
Browse files Browse the repository at this point in the history
Co-authored-by: Micah <[email protected]>
  • Loading branch information
Midnightific and Dekkonot committed Aug 2, 2024
1 parent b8a8f1c commit eaaf590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/storage/tool_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ impl ToolStorage {
// so look for and try to remove existing links that do not have the extension
if should_check_exe_extensions() {
for link_path in &mut link_paths {
if !has_exe_extension(link_path.clone()) {
remove_file(link_path.clone()).await?;
if !has_exe_extension(link_path.as_path()) {
remove_file(link_path.as_path()).await?;
*link_path = append_exe_extension(&link_path);
}
}
Expand Down

0 comments on commit eaaf590

Please sign in to comment.