refactor(link): remove TODO comment
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
7b88057b3f
commit
41334cdaf0
1 changed files with 0 additions and 1 deletions
|
@ -198,7 +198,6 @@ impl Link {
|
|||
let tx_path: &Path = std::path::Path::new(&self.tx);
|
||||
let rx_path: &Path = std::path::Path::new(&self.rx);
|
||||
match rx_path.try_exists() {
|
||||
// TODO: unwrap defeats the purpose here.
|
||||
Ok(true) => handle_file_exists(self, tx_path, rx_path),
|
||||
Ok(false) if rx_path.is_symlink() => Err(LinkError::FileExists(
|
||||
tx_path.to_string_lossy().to_string(),
|
||||
|
|
Loading…
Reference in a new issue