Skip to content

Commit

Permalink
removed unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BouVid committed Oct 24, 2023
1 parent 35dd9fb commit 2a82d3d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public async Task<ActionResult<ExcelConversion>> ValidateContractorImportSpreads


if (string.IsNullOrEmpty(url))
return ApiErrors.InvalidOperation(
new InvalidOperationException("Missing configuration for fusion utility function"));
throw new InvalidOperationException("Missing configuration for fusion utility function");


using var streamContent = new StreamContent(request.File!.OpenReadStream());
Expand All @@ -60,9 +59,8 @@ public async Task<ActionResult<ExcelConversion>> ValidateContractorImportSpreads
if (response.IsSuccessStatusCode)
return JsonConvert.DeserializeObject<ExcelConversion>(content)!;

return ApiErrors.InvalidOperation(
new InvalidOperationException(
$"Parser function returned non-successfull response ({response.StatusCode})."));
throw new InvalidOperationException(
$"Parser function returned non-successfull response ({response.StatusCode}).");
}

[HttpGet("/utilities/templates/import-personnel")]
Expand Down

0 comments on commit 2a82d3d

Please sign in to comment.