Bug 38261

Summary: JS warning "unreachable code after return statement"
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: ILLAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: pedro.amorim, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jonathan Druart 2024-10-24 14:22:10 UTC
792     function getTitle(meta) {
 793         if (meta.article_title && meta.article_title.length > 0) {
 794             return 'article_title';
 795             return {
 796                 prop: 'article_title',
 797                 value: meta.article_title
 798             };
 799         } else if (meta.title && meta.title.length > 0) {
 800             return 'title';
 801             return {
 802                 prop: 'title',
 803                 value: meta.title
 804             };
 805         }
 806     };