`res` isn't used further, just get rid of the local: `if  manifest.verify signed_manifest` I'd also consider renaming the method since it just returns true or false (okay object or nil actually I guess) and does no writing operation,  name it `valid?` or even `valid_signature?`  maybe.