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

Fix 'return-or-die' statements. #36

Merged
merged 1 commit into from Jul 26, 2018
Merged

Fix 'return-or-die' statements. #36

merged 1 commit into from Jul 26, 2018

Commits on Jul 25, 2018

  1. Fix 'return-or-die' statements.

    Statements like this:
    
        return do_something() or die "something is wrong";
    
    ... are almost certainly mistakes. Since `or` has lower precedence
    than `return`, it is equivalent to:
    
       ( return do_something() ) or die "something_is wrong";
    
    Since `return` takes the value to caller, the `or` operator and the
    order side of it never executes.
    gugod committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    ffd398a View commit details
    Browse the repository at this point in the history