Skip to content

Commit f45e37f

Browse files
committed
💂‍♂️ Guard against missing bookmarks package in binding constructor
1 parent ac088ae commit f45e37f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/minimap-bookmarks-binding.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
module.exports =
44
class MinimapBookmarksBinding
55
constructor: (@minimap, @bookmarks) ->
6+
return unless @minimap? and @bookmarks?
7+
68
@subscriptions = new CompositeDisposable
79
@editor = @minimap.getTextEditor()
810
@decorationsByMarkerId = {}

0 commit comments

Comments
 (0)