mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 20:37:48 +00:00
Source cleanup of onJobStart.
This commit is contained in:
@@ -368,14 +368,14 @@ function onJobReset() {
|
|||||||
* @param {Object} body The response body JSON object.
|
* @param {Object} body The response body JSON object.
|
||||||
*/
|
*/
|
||||||
function onJobStart(error, res, body) {
|
function onJobStart(error, res, body) {
|
||||||
var statusCode = _.result(res, 'statusCode'),
|
|
||||||
taskId = _.first(_.result(body, 'js tests')),
|
|
||||||
tunnel = this.tunnel;
|
|
||||||
|
|
||||||
this.starting = false;
|
this.starting = false;
|
||||||
|
|
||||||
if (this.stopping) {
|
if (this.stopping) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var statusCode = _.result(res, 'statusCode'),
|
||||||
|
taskId = _.first(_.result(body, 'js tests'));
|
||||||
|
|
||||||
if (error || !taskId || statusCode != 200) {
|
if (error || !taskId || statusCode != 200) {
|
||||||
if (this.attempts < this.retries) {
|
if (this.attempts < this.retries) {
|
||||||
this.restart();
|
this.restart();
|
||||||
|
|||||||
Reference in New Issue
Block a user