Removes unnecessary elsif

Since the attribution is the same for both cases I think we can merge them.
Merge pull request #951 from leandromoreira/patch-4

Removes unnecessary elsif
Merge git://github.com/logstash/logstash