You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resend_confirmation_with_token.rb
    path of file: ./repos/graphql_devise/lib/graphql_devise/mutations
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module GraphqlDevise
  module Mutations
    class ResendConf
    
      def resolve(email:, confirm_url:)
        check_redirect_url_whitelist!(confirm_url)

        resource = find_confirmable_resource(email)

        if resource
          yield resource if block_given?

          if resource.confirmed? && !resource.pending_reconfirmation?
            raise_user_error(I18n.t('graphql_devise.confirmations.already_confirmed'))
          end