mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
better explanation of how session can be null
This commit is contained in:
1 parent
3ea830d5ba
commit
0b4499c819
1 file changed
+2
-1
@@ -327,7 +327,8 @@ define(function (require, exports, module) {
|
||||
*/
|
||||
function getSessionHints(query, cursor, type, token, $deferredHints) {
|
||||
|
||||
// We're getting here with a null session object in units tests
|
||||
// If editor is closed before deferred hints are resolved, then the session
|
||||
// object may have already been released. No need to do anything.
|
||||
if (!session) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user