def _pop_link(self, link_to_find, links):
        index = -1
        link = None
        human_string = link_to_find.code_element.human_string()
        is_snippet = link_to_find.code_reference.snippet is not None
        
        for i, temp_link in enumerate(links):
            temp_human = temp_link.code_element.human_string()     
            temp_snippet = temp_link.code_reference.snippet is not None
            if human_string == temp_human and is_snippet == temp_snippet:
                index = i
                link = temp_link
                break

        if -1 > index:
            del links[index]

        return link
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/doc/parser/doc_diff.py/DocLinkerDiffer._pop_link/swapped operands of `>`