HomePhorge

(#6820) Fix invalid next that should be a return
341654ea16e6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#6820) Fix invalid next that should be a return

The old code under ruby 1.8.7 if it was hit would result in:

unexpected next (LocalJumpError)

In Ruby 1.9 it doesn't even give you the chance to run the code since
you get:

compile error (SyntaxError)

The code isn't tested so the intented behavior isn't clear, but in
context this looks like the right change.

Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU3d43d866d662: (#2782) Fix constant_defined?
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPU341654ea16e6: (#6820) Fix invalid next that should be a return (authored by Matt Robinson <matt@puppetlabs.com>).Mar 23 2011, 9:10 PM