How did this pass rubocop?