• Yorick Peterse's avatar
    Tweaked performance of Issue#related_branches · 41b8d226
    Yorick Peterse authored
    Requesting the branch names of a repository works even when it's empty,
    thus there's no need to explicitly check for an empty repository.
    Removing this check cuts down the amount of Git operations which in turn
    cuts down request timings a bit. The regular expression used to compare
    branches was also moved out of the loop so it's created only once.
    41b8d226
issue.rb 3.86 KB