Project

General

Profile

Actions

Bug #77539

closed

Javascript warning in Firefox 48 console: "unreachable code after return statement"

Added by Kasper Ligaard over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2016-08-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

On line 263 in TYPO3.CMS/typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js there is unreacheable code:

261 if (value=="") {
262    return "";
263    return 0;    // Why would I ever return a zero??? (20/12/01)
264 }

Solution: Remove line 263.

PS: According to the comment on line 263, it would seem the unreachable code has there for years.

Actions

Also available in: Atom PDF