Skip to content

Commit

Permalink
Destroying typechecking and totality instance should not be twisted
Browse files Browse the repository at this point in the history
  • Loading branch information
zjhmale committed Apr 30, 2017
1 parent 7e3aa43 commit 319a384
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/idris/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,6 @@ let destroy = (isOnSave) => {
model = null
}
} else {
if (model != null) {
model.stop()
model = null
}
if (checkNotTotalModel != null) {
checkNotTotalModel.stop()
checkNotTotalModel = null
Expand Down
2 changes: 1 addition & 1 deletion src/providers/idris/hoverProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let IdrisHoverProvider = (function () {
}
},
function (err) {
if (err.warnings.length > 0) {
if (err.warnings && err.warnings.length > 0) {
resolve(err.warnings[0][3])
} else {
resolve(err.message)
Expand Down

0 comments on commit 319a384

Please sign in to comment.