Bug 38261 - JS warning "unreachable code after return statement"
Summary: JS warning "unreachable code after return statement"
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: ILL (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-24 14:22 UTC by Jonathan Druart
Modified: 2024-10-24 14:22 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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     };