This should probably still work even when no editors are open since the project path is all you need.

So this would be instead:

```coffee
itemPath = getActivePath() ? atom.project.getPath()
if itemPath
  GitHubFile.fromPath(itemPath).openBranchCompare()
```