Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Jul 10, 2024
1 parent 330511d commit c942e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions InterfaceToJira/RestApiClient2/JiraClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
using System.Linq;
using System.Net;
using HIC.Common.InterfaceToJira.JIRA.RestApiClient2.JiraModel;
using Newtonsoft.Json;
using Rdmp.Core.ReusableLibraryCode.Checks;
using RestSharp;
using RestSharp.Authenticators;

Expand Down
7 changes: 2 additions & 5 deletions JiraPlugin/JIRATicketingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial class JIRATicketingSystem : PluginTicketingSystem

private JiraClient _client;

////releaseability
//releaseability
public List<Attachment> JIRAProjectAttachements { get; private set; }
public string JIRAReleaseTicketStatus { get; private set; }

Expand Down Expand Up @@ -58,7 +58,7 @@ public override List<string> GetAvailableStatuses()
var statuses = _client.GetStatuses().Select(x => x.name);
return statuses.ToList();
}
catch (Exception e)
catch (Exception)
{
return [];
}
Expand All @@ -71,17 +71,14 @@ private Issue GetIssue(string ticket)
private readonly string _serverUrl;
private readonly string _apiVersion;
private readonly string _username;
private readonly string _password;
private readonly string _baseUrl;
private readonly RestClient _restClient;

public JIRATicketingSystem(TicketingSystemConstructorParameters parameters) : base(parameters)
{
Credentials = parameters.Credentials;
Url = parameters.Url;
_serverUrl = parameters.Url;
_username = parameters.Credentials.Username;
_password = parameters.Credentials.Password;
_apiVersion = "latest";
_baseUrl = string.Format("{0}/rest/api/{1}/", _serverUrl, _apiVersion);
}
Expand Down

0 comments on commit c942e6a

Please sign in to comment.