Skip to content

Commit

Permalink
- style fix
Browse files Browse the repository at this point in the history
- 'case blah:' is not valid in ruby 1.9 (the colon at the end). I can't
  find this actually documented anywhere, but mainly due to searching
  for 'case' and 'when' in the ruby changelog is pointless.
  • Loading branch information
jordansissel committed May 26, 2011
1 parent fb51b44 commit 9335997
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/logstash/outputs/stdout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def receive(event)

if @debug
case @debug_format.first
when "ruby":
@print_method.call(event.to_hash)
when "json":
puts event.to_json
else
raise "unknown debug_format #{@debug_format}, this should never happen"
when "ruby"
@print_method.call(event.to_hash)
when "json"
puts event.to_json
else
raise "unknown debug_format #{@debug_format}, this should never happen"
end
else
puts event.to_s
Expand Down

0 comments on commit 9335997

Please sign in to comment.