mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-10 15:58:27 -05:00
chore(fs-util): remove redundant tmp_path clone (#19003)
This commit is contained in:
@@ -332,10 +332,7 @@ where
|
||||
Err(err) => {
|
||||
// Clean up the temporary file before returning the error
|
||||
let _ = fs::remove_file(&tmp_path);
|
||||
return Err(FsPathError::Write {
|
||||
source: Error::other(err.into()),
|
||||
path: tmp_path.clone(),
|
||||
});
|
||||
return Err(FsPathError::Write { source: Error::other(err.into()), path: tmp_path });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user