fix done not logging when using with_context in a worker

@mperham fixes https://github.com/mperham/sidekiq/issues/2109
any is ruby

irb
[].any?
>> [].any?
=> false

needs a leading " " so this won't work -> refactored to use array
expansion, does this look better ?

On Tue, Dec 30, 2014 at 1:29 PM, Mike Perham <notifications@github.com>
wrote:
>
> In lib/sidekiq/logging.rb
> <https://github.com/mperham/sidekiq/pull/2110#discussion-diff-22365597>:
>
> > @@ -12,17 +12,16 @@ def call(severity, time, program_name, message)
> >
> >        def context
> >          c = Thread.current[:sidekiq_context]
> > -        c ? " #{c}" : ''
> > +        c && c.any? ? " #{c.join(" ")}" : ''
>
> I believe any? is a Railsism which Sidekiq can't use but I don't think
> it's necessary if you have c always be non-nil.
>
> irb(main):001:0> [].join(" ")
> => ""
> irb(main):002:0> ['foo'].join(" ")
> => "foo"
> irb(main):003:0> ['foo', 'bar'].join(" ")
> => "foo bar"
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mperham/sidekiq/pull/2110/files#r22365597>.
>