File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -352,11 +352,6 @@ class CommentList {
352352 async #loadCreatedComment( commentId : number ) : Promise < void > {
353353 const response = await renderComment ( commentId ) ;
354354 if ( ! response . ok ) {
355- const validationError = response . error . getValidationError ( ) ;
356- if ( validationError === undefined ) {
357- throw new Error ( "Unexpected validation error" , { cause : response . error } ) ;
358- }
359-
360355 return ;
361356 }
362357
@@ -374,11 +369,6 @@ class CommentList {
374369 async #loadCreatedResponse( commentId : number , responseId : number ) : Promise < void > {
375370 const response = await renderResponse ( responseId ) ;
376371 if ( ! response . ok ) {
377- const validationError = response . error . getValidationError ( ) ;
378- if ( validationError === undefined ) {
379- throw new Error ( "Unexpected validation error" , { cause : response . error } ) ;
380- }
381-
382372 return ;
383373 }
384374
You can’t perform that action at this time.
0 commit comments