refactor(link): remove TODO comment

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-10-17 07:02:45 +02:00
parent 7b88057b3f
commit 41334cdaf0
Signed by: cafkafk
GPG key ID: 26C542FD97F965CE

View file

@ -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(),