Merge pull request #15740 from atom/aw-missing-typeof

Restore a missing "typeof"
This commit is contained in:
Ash Wilson
2017-09-25 07:44:29 -07:00
committed by GitHub

View File

@@ -517,7 +517,7 @@ class Package
console.error "Error deactivating package '#{@name}'", e.stack
# We support then-able async promises as well as sync ones from deactivate
if deactivationResult?.then is 'function'
if typeof deactivationResult?.then is 'function'
deactivationResult.then => @afterDeactivation()
else
@afterDeactivation()