human
Solve the following python programming problem given the following code:
def rebuild_indices(es = None, indices = [], set_aliases = True) : 
    es = (es or Elasticsearch (** es_settings.ELASTICSEARCH_CONNECTION_PARAMS)) 
    (created_indices, aliases) = create_indices (es, indices, False) 
    current_index_name = None 
    current_index_settings = { 
        
} 
    def change_index() : 
        if current_index_name : 
            settings = { 
                'number_of_replicas' : current_index_settings.get ('index', { 
                    
}).get ('number_of_replicas', 1), 
                'refresh_interval' : current_index_settings.get ('index', { 
                    
}).get ('refresh_interval', '1s'), 
                'merge.policy.merge_factor' : current_index_settings.get ('index', { 
                    
}).get ('merge.policy.merge_factor', 10), 
} 
            es.indices.put_settings ({ 
                'index' : settings, 
}, current_index_name) 
            es.indices.refresh (current_index_name) 
for (type_class, index_alias, index_name) in created_indices : 
        if (current_index_name != current_index_name) : 
            change_index () 
            current_index_settings = es.indices.get_settings (index_name).get (index_name, { 
                
}).get ('settings', { 
                
}) 
            current_index_name = index_name 
            es.indices.put_settings ({ 
                'index' : { 
                    'number_of_replicas' : 0, 
                    'refresh_interval' : '-1', 
                    'merge.policy.merge_factor' : 30, 
}, 
}, index = index_name) 
try : 
            type_class.bulk_index (es, index_name) 
except NotImplementedError : 
            sys.stderr.write ('`bulk_index` not implemented on `{}`.
'.format (type_class.get_index_name ())) 
            continue 
else : 
        change_index () 
if set_aliases : 
        create_aliases (es, aliases) 
post_indices_rebuild.send (None, indices = aliases, aliases_set = set_aliases) 
    return (created_indices, aliases) 

    
    

    Fix the buggy line: if (current_index_name != current_index_name) :
assistant
#Here is Python program to fix the buggy line: if (current_index_name != current_index_name) :
.

if (index_name != current_index_name) :