lib/rocket_job/sliced/slice.rb in rocketjob-5.2.0.beta1 vs lib/rocket_job/sliced/slice.rb in rocketjob-5.2.0.beta2
- old
+ new
@@ -126,12 +126,10 @@
end
# Returns the failed record.
# Returns [nil] if there is no failed record
def failed_record
- if exception && processing_record_number
- at(processing_record_number - 1)
- end
+ at(processing_record_number - 1) if exception && processing_record_number
end
# Returns [Hash] the slice as a Hash for storage purposes
# Compresses / Encrypts the slice according to the job setting
if ::Mongoid::VERSION.to_i >= 6