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: update_service.rb
    path of file: ./repos/gitlabhq/app/services/labels
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Labels
  class UpdateService < Labels::BaseService
    def initialize(params = {})
      @params = params.to_h.dup.with_indifferent_access
    end

    # returns the updated label
    def execute(label)
  
    
    def execute(label)
      params[:name] = params.delete(:new_name) if params.key?(:new_name)
      params[:color] = convert_color_name_to_hex if params[:color].present?
      params.delete(:lock_on_merge) unless allow_lock_on_merge?(label)

      label.update(params)
      label
    end