Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minor logic bug and code smell in make_link_relative
Don't assume that the reason why we didn't find enough slashes in a URL is because the user didn't specify the slash at the end of the host name, unless we did find the first two slashes. Add some curly braces around an if block to make it clear to people and the compiler which statement an `else` applies to. The logic was correct before but the indentation was wrong, making it especially confusing.
- Loading branch information