# File lib/dragonfly/job.rb, line 294 def validate_sha!(sha) case sha when nil raise NoSHAGiven when self.sha self else raise IncorrectSHA, sha end end