diff options
| author | diogo464 <[email protected]> | 2023-05-04 11:32:56 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2023-05-04 11:32:56 +0100 |
| commit | 38db0853c51c475ce73fd255459551f0fcd02e12 (patch) | |
| tree | 6ca6e5afac6a5c619f904ed95addf4c01b7f962f /src | |
| parent | eaafa272854a74cffcb3ae9ed7e69b4da2c6fe98 (diff) | |
fix: invalid early return
Diffstat (limited to 'src')
| -rw-r--r-- | src/dotup/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotup/mod.rs b/src/dotup/mod.rs index d62047d..d620295 100644 --- a/src/dotup/mod.rs +++ b/src/dotup/mod.rs | |||
| @@ -182,11 +182,11 @@ pub fn install(dotup: &Dotup, params: &InstallParams, group: &str) -> Result<()> | |||
| 182 | 182 | ||
| 183 | // Early return if the symlink already points to the correct source | 183 | // Early return if the symlink already points to the correct source |
| 184 | if metadata.is_symlink() && fs_symlink_points_to(&target, &source)? { | 184 | if metadata.is_symlink() && fs_symlink_points_to(&target, &source)? { |
| 185 | return Ok(()); | 185 | continue; |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | if !prompt_overwrite(params, &target)? { | 188 | if !prompt_overwrite(params, &target)? { |
| 189 | return Ok(()); | 189 | continue; |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | fs_remove(&target)?; | 192 | fs_remove(&target)?; |
