Skip to content

Commit

Permalink
refactor: better variable names for formdata predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 committed Sep 30, 2024
1 parent a1a0a7d commit a040a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BugSplatDotNetStandard/Api/CrashPostClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private async Task<HttpResponseMessage> PostInMemoryCrashFile(
.Where(file => file != null)
.ToList();

var additionalFormDataFiles = CombineListsWithDuplicatesRemoved(defaultPostOptions.FormDataParams, overridePostOptions.FormDataParams, (IFormDataParam file) => file.Name)
var additionalFormDataFiles = CombineListsWithDuplicatesRemoved(defaultPostOptions.FormDataParams, overridePostOptions.FormDataParams, (IFormDataParam param) => param.Name)
.Where(file => !string.IsNullOrEmpty(file.FileName) && file.Content != null)
.Select(file => new InMemoryFile() { FileName = file.FileName, Content = file.Content.ReadAsByteArrayAsync().Result })
.ToList();
Expand Down Expand Up @@ -257,7 +257,7 @@ int crashPostSize
var baseUrl = this.CreateBaseUrlFromDatabase(database);
var path = $"{baseUrl}/api/getCrashUploadUrl";
var route = $"{path}?database={database}&appName={application}&appVersion={version}&crashPostSize={crashPostSize}";

return await httpClient.GetAsync(route);
}

Expand Down

0 comments on commit a040a7e

Please sign in to comment.