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

Localise loop variable's scope to the loop's scope #128

Merged
merged 1 commit into from Aug 11, 2015

Conversation

Projects
None yet
2 participants
@paultcochrane
Contributor

paultcochrane commented Aug 11, 2015

The variable $lookup is only used within the loop and thus its declaration
can be scoped to the loop rather than to the enclosing if block.

Localise loop variable's scope to the loop's scope
The variable `$lookup` is only used within the loop and thus its declaration
can be scoped to the loop rather than to the enclosing `if` block.

racke added a commit that referenced this pull request Aug 11, 2015

Merge pull request #128 from paultcochrane/pr/localise-loop-var
Localise loop variable's scope to the loop's scope

@racke racke merged commit 593087f into racke:master Aug 11, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment