Skip to content

Commit 84de594

Browse files
author
Stefania
committed
removed unused check
1 parent 35d2029 commit 84de594

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/socket-daemon.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,9 @@ export default class SocketDaemon extends Daemon {
284284
})
285285
.then(result => result.json())
286286
.then(response => {
287-
if (!response.ok) {
288-
if (response && response.error && (response.error.indexOf('proxy') !== -1 || response.error.indexOf('dial tcp') !== -1)) {
289-
this.error.next('proxy error');
290-
return new Error('proxy error');
291-
}
287+
if (response && response.error && (response.error.indexOf('proxy') !== -1 || response.error.indexOf('dial tcp') !== -1)) {
288+
this.error.next('proxy error');
289+
return new Error('proxy error');
292290
}
293291
// We reject the promise because the daemon will be restarted, we need to continue looking for the port
294292
return Promise.reject();

0 commit comments

Comments
 (0)