Update partitions.rb

remove unused condition.