Autofix Rubocop Style/IfUnlessModifier (#23697)
This commit is contained in:
		@@ -27,9 +27,7 @@ class ActivityPub::LinkedDataSignature
 | 
			
		||||
    document_hash  = hash(@json.without('signature'))
 | 
			
		||||
    to_be_verified = options_hash + document_hash
 | 
			
		||||
 | 
			
		||||
    if creator.keypair.public_key.verify(OpenSSL::Digest.new('SHA256'), Base64.decode64(signature), to_be_verified)
 | 
			
		||||
      creator
 | 
			
		||||
    end
 | 
			
		||||
    creator if creator.keypair.public_key.verify(OpenSSL::Digest.new('SHA256'), Base64.decode64(signature), to_be_verified)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def sign!(creator, sign_with: nil)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user