Minor refactoring
This commit is contained in:
@@ -136,7 +136,9 @@ public class DirectoryManager : BaseManager
|
||||
deleted++;
|
||||
}
|
||||
|
||||
curDir = System.IO.Directory.GetParent(curDir).ToString();
|
||||
var parentDirectory = System.IO.Directory.GetParent(curDir);
|
||||
|
||||
curDir = parentDirectory!.ToString();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -3,7 +3,6 @@ using NLog;
|
||||
using Icarus.Controllers.Utilities;
|
||||
using Icarus.Models;
|
||||
using Icarus.Database.Contexts;
|
||||
using TagLib.Mpeg4;
|
||||
|
||||
namespace Icarus.Controllers.Managers;
|
||||
|
||||
|
||||
@@ -219,11 +219,11 @@ public class SongDataController : BaseController
|
||||
{
|
||||
#region Properties
|
||||
[Newtonsoft.Json.JsonProperty("message")]
|
||||
public string Message { get; set; }
|
||||
public string? Message { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("subject")]
|
||||
public string Subject { get; set; }
|
||||
public string? Subject { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
public List<Song> Songs { get; set; }
|
||||
public List<Song>? Songs { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user