File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export function observeAttachDebugTargets(): ConnectableObservable<Array<PythonD
56
56
}
57
57
58
58
function isPortUsed(port: number): Promise< boolean > {
59
- const tryConnectPromise = new Promise ( ( resolve , reject ) => {
59
+ const tryConnectPromise = new Promise ( ( resolve ) => {
60
60
const client = new net . Socket ( )
61
61
client
62
62
. once ( "connect" , ( ) => {
@@ -134,7 +134,7 @@ function handleJsonRequest(body, res) {
134
134
const port = Number ( body . port )
135
135
getLogger ( ) . info ( "Remote debug target attach request" , body )
136
136
const target = attachReady . get ( port )
137
- if ( target != null ) {
137
+ if ( target !== undefined ) {
138
138
debugRequests . next ( {
139
139
type,
140
140
command,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class PythonLanguageClient extends AutoLanguageClient {
78
78
79
79
onSpawnError ( err ) {
80
80
const description =
81
- err . code == "ENOENT"
81
+ err . code === "ENOENT"
82
82
? `No Python interpreter found at \`${ this . python } \`.`
83
83
: `Could not spawn the Python interpreter \`${ this . python } \`.`
84
84
atom . notifications . addError ( "`ide-python` could not launch your Python runtime." , {
@@ -88,7 +88,7 @@ class PythonLanguageClient extends AutoLanguageClient {
88
88
}
89
89
90
90
onSpawnClose ( code , signal ) {
91
- if ( code !== 0 && signal == null ) {
91
+ if ( code !== 0 && signal === null ) {
92
92
atom . notifications . addError ( "Unable to start the Python language server." , {
93
93
dismissable : true ,
94
94
buttons : [
@@ -124,7 +124,7 @@ class PythonLanguageClient extends AutoLanguageClient {
124
124
}
125
125
126
126
createTimeoutPromise ( milliseconds ) {
127
- return new Promise ( ( resolve , reject ) => {
127
+ return new Promise ( ( resolve ) => {
128
128
const timeout = setTimeout ( ( ) => {
129
129
clearTimeout ( timeout )
130
130
this . logger . error ( `Server failed to shutdown in ${ milliseconds } ms, forcing termination` )
You can’t perform that action at this time.
0 commit comments