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

Adjust things to avoid Perl 5.20's precedence warnings #1773

Merged
merged 1 commit into from May 13, 2016

Conversation

pinterface
Copy link
Contributor

Due to Perl's precedence rules, return x or thing is always
interpreted as return x, so the or thing never happens.
That's not really ideal when you're trying to error out (or die),
so adjust these calls to ensure the dieing is not dead code.

Fixes #1772

Due to Perl's precedence rules, `return x or thing` is always
interpreted as `return x`, so the `or thing` never happens.
That's not really ideal when you're trying to error out (`or die`),
so adjust these calls to ensure the dieing is not dead code.

Fixes dreamwidth#1772
@kareila kareila merged commit 362153b into dreamwidth:develop May 13, 2016
@kareila
Copy link
Member

kareila commented May 13, 2016

Hurray first commit! 🎉

@rahaeli
Copy link
Contributor

rahaeli commented May 13, 2016 via email

@pinterface pinterface deleted the fix-precedence-warning branch May 13, 2016 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants