Skip to content

Commit 83cfe6a

Browse files
committed
Merge pull request #2486 from ajaxorg/fix/python-linting
[Trivial] Fix python linting - no method error
2 parents e5ac626 + d2f7fc1 commit 83cfe6a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

plugins-client/ext.language/language.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ module.exports = ext.register("ext/language/language", {
121121
}
122122
},
123123

124+
isWorkerEnabled : function () {
125+
return !useUIWorker;
126+
},
127+
124128
isInferAvailable : function() {
125129
return cloud9config.hosted || !!require("core/ext").extLut["ext/jsinfer/jsinfer"];
126130
},

plugins-client/ext.linereport_python/linereport_python.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ module.exports = ext.register("ext/linereport_python/linereport_python", {
2020
alone : true,
2121

2222
init : function() {
23-
language.registerLanguageHandler(
24-
'ext/linereport_python/linereport_python_worker',
25-
language.isWorkerEnabled()
26-
);
23+
language.registerLanguageHandler('ext/linereport_python/linereport_python_worker');
2724
},
2825

2926
enable : function() {

0 commit comments

Comments
 (0)