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

Why not "break"? #377

Open
d-a-gerashenko opened this issue Apr 26, 2019 · 1 comment
Open

Why not "break"? #377

d-a-gerashenko opened this issue Apr 26, 2019 · 1 comment

Comments

@d-a-gerashenko
Copy link

$finished = true;

$finished = true;

Isn't "break" more appropriate than "$finished" variable?

@danhunsaker
Copy link
Contributor

Even better than while(true) and break; would be to move the $string = lines into the while() condition, and remove the if checks entirely. I'd accept a PR at the new repo (https://github.com/resque/php-resque) to apply this change.

I'm assuming it was a stylistic choice to write it the current way in the original PR that added this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants