Suppose there are two links (it doesn't matter where, in the same file or different): 1. https://github.com/torvalds/linux 2. https://github.com/torvalds/linux/ which are essentially identical, but differ only in that one has a `/` at the end. No need to contain duplicates, so need to delete one duplicate.