On Dec 10, 2009, at 2:59 PM, Markus Roberts wrote:
>>> when "file"; backup_file_with_filebucket(file)
>>> - when "link"; return true
>>> + when "link";
>>> end
>>> + true
>>> end
>>>
>
>> Isn't the 'when' here redundant, since there's no else?
>
> Yes. I left it in because I felt it made the intent slightly clearer
> (we aren't neglecting the possibility of links, we're explicitly
> saying that we skip them) and because I started down the road of
> refactoring/cleanup, woke up twenty minutes later several miles from
> base camp wearing a pith helmet and holding a sap stained machete,
> stashed my changes and went back to the minimal change that actually
> fixed the problem.
As long as the bodies are all hidden, I'm good either way.
--
I think that all good, right thinking people in this country are sick
and tired of being told that all good, right thinking people in this
country are fed up with being told that all good, right thinking people
in this country are fed up with being sick and tired. I'm certainly
not, and I'm sick and tired of being told that I am.
-- Monty Python
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.