diff --git a/BLL/CommitDetail.cs b/BLL/CommitDetail.cs index 4194a87..3c8b34c 100644 --- a/BLL/CommitDetail.cs +++ b/BLL/CommitDetail.cs @@ -36,12 +36,7 @@ public class CommitDetail public CommitDetail(string? dir) { - if (!String.IsNullOrEmpty(dir)) { - _selectedDir = dir; - } else { - _selectedDir = Directory.GetCurrentDirectory(); - } - + _selectedDir = !String.IsNullOrEmpty(dir) ? dir : Directory.GetCurrentDirectory(); _authors = new List(); _commitDetails = new SortedList(); _currentBranch = GetCurrentBranch();