From 7a9c6720c73f8a1ff3209342e90e03a4fd9df154 Mon Sep 17 00:00:00 2001 From: Mbucari Date: Wed, 14 Jun 2023 11:35:11 -0600 Subject: [PATCH] Fix Stupid --- Source/FileLiberator/ConvertToMp3.cs | 24 +++++++-------------- Source/FileLiberator/DownloadDecryptBook.cs | 1 - 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/Source/FileLiberator/ConvertToMp3.cs b/Source/FileLiberator/ConvertToMp3.cs index 855f5076..6b6be041 100644 --- a/Source/FileLiberator/ConvertToMp3.cs +++ b/Source/FileLiberator/ConvertToMp3.cs @@ -73,23 +73,15 @@ namespace FileLiberator } else { - try - { - var realMp3Path - = FileUtility.SaferMoveToValidPath( - mp3File.Name, - proposedMp3Path, - Configuration.Instance.ReplacementCharacters, - extension: "mp3", - Configuration.Instance.OverwriteExisting); + var realMp3Path + = FileUtility.SaferMoveToValidPath( + mp3File.Name, + proposedMp3Path, + Configuration.Instance.ReplacementCharacters, + extension: "mp3", + Configuration.Instance.OverwriteExisting); - OnFileCreated(libraryBook, realMp3Path); - } - catch - { - return new StatusHandler { "Failed to move decrypted files to Books directory" }; - throw; - } + OnFileCreated(libraryBook, realMp3Path); } } catch (Exception ex) diff --git a/Source/FileLiberator/DownloadDecryptBook.cs b/Source/FileLiberator/DownloadDecryptBook.cs index c071ec54..26cdf82b 100644 --- a/Source/FileLiberator/DownloadDecryptBook.cs +++ b/Source/FileLiberator/DownloadDecryptBook.cs @@ -94,7 +94,6 @@ namespace FileLiberator //Only fail if the downloaded audio files failed to move to Books directory if (moveFilesTask.IsFaulted) { - return new StatusHandler { "Failed to move decrypted files to Books directory" }; throw; } }