Remove duplicate code in ruby-mode hook

Not sure how this happened