CORE-23734: Refactoring

This commit is contained in:
phoenix
2025-02-06 20:09:43 -05:00
parent 8f6350a3dc
commit 6bff36bc03
3 changed files with 4 additions and 12 deletions
+1 -9
View File
@@ -8,14 +8,6 @@ using TagLib.Mpeg4;
namespace Icarus.Controllers.Managers; namespace Icarus.Controllers.Managers;
public enum CreateFileResult
{
Unknown = 0,
AlreadyExists = 1,
FileCreatedAndExists = 2
}
public class SongManager : BaseManager public class SongManager : BaseManager
{ {
#region Fields #region Fields
@@ -377,7 +369,7 @@ public class SongManager : BaseManager
} }
public CreateFileResult Create(IFormFile file, string filePath, string prompt) public Icarus.Models.CreateFileResult Create(IFormFile file, string filePath, string prompt)
{ {
if (System.IO.File.Exists(filePath)) if (System.IO.File.Exists(filePath))
{ {
+2 -2
View File
@@ -6,6 +6,6 @@ namespace Icarus.Models;
public enum CreateFileResult public enum CreateFileResult
{ {
Unknwon = 0, Unknwon = 0,
AlreadyExists = 1, AlreadyExists = 1,
FileCreatedAndExists = 2 FileCreatedAndExists = 2
} }
+1 -1
View File
@@ -80,7 +80,7 @@ public class Song
{ {
var fullPath = SongDirectory; var fullPath = SongDirectory;
if (fullPath![fullPath.Length -1] != '/') if (fullPath![fullPath.Length - 1] != '/')
{ {
fullPath += "/"; fullPath += "/";
} }