puppetlabs-operations/puppet-puppet — pull request #89 by igalic (2014-05-31 21:42:04+00:00)
Title: simplify code by throwing away if/else

we don't care if something is an array, because we can easily turn it
into an array, flatten it, and then run join on it. join won't do
anything for one element, so
```puppet
$scalar = 'baz'
join(flatten([ $scalar ]), ', ')
```
still returns `baz`, whereas:
```puppet
$ary = ['foo', 'bar']
join(flatten([ $ary ]), ', ')
```
does, indeed, return `foo, bar`