Instead of having a common return at the end of the function, this does
that same return at an intermediate point. The reason is that a future
commit will change the final return somewhat, and this seemed the
clearest way to go.
@$_ )
: sprintf( "$self->{val_fmt} == $test", $_ );
} @ranges;
+
+ return "( " . join( " || ", @ranges ) . " )";
}
- else {
# If the input set has certain characteristics, we can optimize tests
# for it. This doesn't apply if returning the code point, as we want
# each element of the set individually. The code above is for this
}
}
}
- }
return "( " . join( " || ", @ranges ) . " )";