Еще рефакторинга
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JiraTimeBotForm.TaskTime;
|
||||
using JiraTimeBotForm.TaskTime;
|
||||
|
||||
namespace JiraTimeBotForm.JiraIntegration
|
||||
{
|
||||
|
||||
@@ -15,13 +15,12 @@ namespace JiraTimeBotForm.JiraIntegration
|
||||
|
||||
public string GetDescription(TaskTimeItem taskTimeItem, bool addCommentsToWorklog)
|
||||
{
|
||||
var comment = _dummyComments.OrderBy(f=>Guid.NewGuid()).FirstOrDefault();
|
||||
if (addCommentsToWorklog)
|
||||
{
|
||||
comment = taskTimeItem.Description;
|
||||
return taskTimeItem.Description;
|
||||
}
|
||||
|
||||
return comment;
|
||||
return _dummyComments.OrderBy(f => Guid.NewGuid()).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JiraTimeBotForm.Mercurial
|
||||
namespace JiraTimeBotForm.Mercurial
|
||||
{
|
||||
public interface ICommitSkipper
|
||||
{
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JiraTimeBotForm.TasksProcessors
|
||||
namespace JiraTimeBotForm.TasksProcessors
|
||||
{
|
||||
public interface ITasksProcessors
|
||||
{
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace JiraTimeBotForm.UI
|
||||
|
||||
Reference in New Issue
Block a user