Skip to content

Commit

Permalink
Master fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
gizdatullin committed Nov 18, 2024
1 parent ee54474 commit 76327b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ public record CreateIssueRequest : CustomFieldsRequest

public IReadOnlyCollection<string>? AttachmentIds { get; init; }

public IReadOnlyCollection<string>? Sprint { get; init; }

public Priority? Priority { get; init; }

public string? Assignee { get; init; }

public IReadOnlyCollection<string>? Tags { get; init; }

public IReadOnlyCollection<CreateChecklistRequest>? ChecklistItems { get; init; }

/// <summary>
Expand Down
16 changes: 8 additions & 8 deletions Mindbox.YandexTracker/YandexTrackerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public Task<ImportCommentResponse> ImportCommentAsync(
ImportCommentRequest request,
CancellationToken cancellationToken = default)
{
ArgumentException.ThrowIfNullOrWhiteSpace(issueKey);
ArgumentNullException.ThrowIfNull(issueKey);
ArgumentNullException.ThrowIfNull(request);

return ExecuteYandexTrackerApiRequestAsync<ImportCommentResponse>(
Expand Down Expand Up @@ -496,10 +496,10 @@ public async Task<ImportAttachmentResponse> ImportAttachmentToIssueAsync(
string createdBy,
CancellationToken cancellationToken = default)
{
ArgumentException.ThrowIfNullOrWhiteSpace(issueKey);
ArgumentNullException.ThrowIfNull(issueKey);
ArgumentNullException.ThrowIfNull(fileStream);
ArgumentException.ThrowIfNullOrWhiteSpace(newFileName);
ArgumentException.ThrowIfNullOrWhiteSpace(createdBy);
ArgumentNullException.ThrowIfNull(newFileName);
ArgumentNullException.ThrowIfNull(createdBy);

var parameters = new Dictionary<string, string>
{
Expand Down Expand Up @@ -529,11 +529,11 @@ public async Task<ImportAttachmentResponse> ImportAttachmentToIssueCommentAsync(
string createdBy,
CancellationToken cancellationToken = default)
{
ArgumentException.ThrowIfNullOrWhiteSpace(issueKey);
ArgumentException.ThrowIfNullOrWhiteSpace(commentId);
ArgumentNullException.ThrowIfNull(issueKey);
ArgumentNullException.ThrowIfNull(commentId);
ArgumentNullException.ThrowIfNull(fileStream);
ArgumentException.ThrowIfNullOrWhiteSpace(newFileName);
ArgumentException.ThrowIfNullOrWhiteSpace(createdBy);
ArgumentNullException.ThrowIfNull(newFileName);
ArgumentNullException.ThrowIfNull(createdBy);

var parameters = new Dictionary<string, string>
{
Expand Down

0 comments on commit 76327b0

Please sign in to comment.