Skip to content

Commit abacf65

Browse files
authored
Undoing a bit too overzealous change application. (#6680)
1 parent bb75cce commit abacf65

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/NuGetGallery/Controllers/PackagesController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,18 +2319,18 @@ public virtual async Task<JsonResult> PreviewReadMe(ReadMeRequest formData)
23192319
{
23202320
if (formData == null || !_readMeService.HasReadMeSource(formData))
23212321
{
2322-
return Json(HttpStatusCode.BadRequest, new[] { new JsonValidationMessage(Strings.PreviewReadMe_ReadMeMissing) });
2322+
return Json(HttpStatusCode.BadRequest, new[] { Strings.PreviewReadMe_ReadMeMissing });
23232323
}
23242324

23252325
try
23262326
{
23272327
var readMeHtml = await _readMeService.GetReadMeHtmlAsync(formData, Request.ContentEncoding);
2328-
return Json(new[] { new JsonValidationMessage(readMeHtml) });
2328+
return Json(new[] { readMeHtml });
23292329
}
23302330
catch (Exception ex)
23312331
{
23322332
return Json(HttpStatusCode.BadRequest, new[] {
2333-
new JsonValidationMessage(string.Format(CultureInfo.CurrentCulture, Strings.PreviewReadMe_ConversionFailed, ex.Message)) });
2333+
string.Format(CultureInfo.CurrentCulture, Strings.PreviewReadMe_ConversionFailed, ex.Message) });
23342334
}
23352335
}
23362336

0 commit comments

Comments
 (0)