Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 1e970d6

Browse files
committed
Fix #97 undefined.startsWith read
1 parent ef79074 commit 1e970d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/competition.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ function showConflictingPackageWarnings() {
4343
text: "Disable ide-rust",
4444
onDidClick: () => {
4545
atom.notifications.getNotifications()
46-
.filter(note => note.getOptions()._src.startsWith("ide-rust"))
46+
.filter(note => {
47+
const src = note.getOptions()._src
48+
return src && src.startsWith("ide-rust")
49+
})
4750
.forEach(note => note.dismiss())
4851
atom.packages.disablePackage("ide-rust")
4952
}

0 commit comments

Comments
 (0)