mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-02 12:08:37 +01:00
Remove redundant code
This commit is contained in:
@@ -33,11 +33,7 @@ const useImageStorage = () => {
|
||||
console.warn("Error fetching image:", error);
|
||||
return null;
|
||||
} finally {
|
||||
try {
|
||||
if (tmpFile.exists) tmpFile.delete();
|
||||
} catch {
|
||||
// best-effort cleanup
|
||||
}
|
||||
if (tmpFile.exists) tmpFile.delete();
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user