Fix some rubocop warnings.