Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[validation] False positive: unreachable code #27

Open
Lynorics opened this issue Mar 14, 2014 · 0 comments
Open

[validation] False positive: unreachable code #27

Lynorics opened this issue Mar 14, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@Lynorics
Copy link
Owner

The following code gives a false positive for the first if-statement, telling "unreachable code"

  internal static function curtail(s:String):String {
    if (!s) return '';
    if (s.length > SHORT_NAME_MAX_LENGTH) {
      return s.substr(0, SHORT_NAME_MAX_LENGTH - 3) + '...';
    }
    return s;
  }
@Lynorics Lynorics added the bug label Mar 14, 2014
@Lynorics Lynorics self-assigned this Mar 25, 2014
@Lynorics Lynorics added this to the v1.1 milestone Mar 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant