Skip to content

Fixed return value for Rubinius::Mirror::Range#step_float_iterations_…#3448

Merged
yorickpeterse merged 1 commit into
rubinius:masterfrom
nirvdrum:fix_step_float_iterations_size
Jun 22, 2015
Merged

Fixed return value for Rubinius::Mirror::Range#step_float_iterations_…#3448
yorickpeterse merged 1 commit into
rubinius:masterfrom
nirvdrum:fix_step_float_iterations_size

Conversation

@nirvdrum

Copy link
Copy Markdown
Contributor

…size.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the return value of the if excl block above already return this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the if modifier is false, the result of the expression is nil.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, this could be pushed inside the if block. The issue only affects the excl case.

yorickpeterse pushed a commit that referenced this pull request Jun 22, 2015
Fixed return value for Rubinius::Mirror::Range#step_float_iterations_…
@yorickpeterse yorickpeterse merged commit 2ceaa67 into rubinius:master Jun 22, 2015
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

Successfully merging this pull request may close these issues.

2 participants