if has_prior_node: prior_node.next_node = current_node.next_node else: root_node = current_node.next_node