File tree Expand file tree Collapse file tree
src/NuGetGallery/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments