Skip to content

Commit eb450b2

Browse files
committed
🐛 Fix error raised when opening a non existing file
Fixes #16
1 parent 6e7265a commit eb450b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/minimap-git-diff.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class MinimapGitDiff
6464
getRepositories: -> atom.project.getRepositories().filter (repo) -> repo?
6565

6666
destroyBindings: =>
67-
return unless @minimap? or @minimap.editorsMinimaps?
67+
return unless @minimap? and @minimap.editorsMinimaps?
6868
@minimap.editorsMinimaps.forEach (minimap) =>
6969
@bindings.get(minimap)?.destroy()
7070
@bindings.delete(minimap)

0 commit comments

Comments
 (0)