mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Whitespace nits. [ci skip]
This commit is contained in:
@@ -490,6 +490,7 @@ Job.prototype.reset = function(callback) {
|
|||||||
|
|
||||||
this.once('start', _.callback(callback, this));
|
this.once('start', _.callback(callback, this));
|
||||||
_.defer(_.bind(this.emit, this, 'reset'));
|
_.defer(_.bind(this.emit, this, 'reset'));
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -522,8 +523,8 @@ Job.prototype.restart = function(callback) {
|
|||||||
*/
|
*/
|
||||||
Job.prototype.start = function(callback) {
|
Job.prototype.start = function(callback) {
|
||||||
var tunnel = this.tunnel;
|
var tunnel = this.tunnel;
|
||||||
this.once('start', _.callback(callback, this));
|
|
||||||
|
|
||||||
|
this.once('start', _.callback(callback, this));
|
||||||
if (this.starting || this.running || tunnel.starting || tunnel.stopping) {
|
if (this.starting || this.running || tunnel.starting || tunnel.stopping) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -545,8 +546,8 @@ Job.prototype.start = function(callback) {
|
|||||||
*/
|
*/
|
||||||
Job.prototype.status = function(callback) {
|
Job.prototype.status = function(callback) {
|
||||||
var tunnel = this.tunnel;
|
var tunnel = this.tunnel;
|
||||||
this.once('status', _.callback(callback, this));
|
|
||||||
|
|
||||||
|
this.once('status', _.callback(callback, this));
|
||||||
if (this.checking || this.starting || this.stopping || tunnel.starting || tunnel.stopping) {
|
if (this.checking || this.starting || this.stopping || tunnel.starting || tunnel.stopping) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -568,13 +569,12 @@ Job.prototype.status = function(callback) {
|
|||||||
*/
|
*/
|
||||||
Job.prototype.stop = function(callback) {
|
Job.prototype.stop = function(callback) {
|
||||||
this.once('stop', _.callback(callback, this));
|
this.once('stop', _.callback(callback, this));
|
||||||
|
|
||||||
if (this.stopping || this.tunnel.starting) {
|
if (this.stopping || this.tunnel.starting) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
var onStop = _.bind(onJobStop, this);
|
var onStop = _.bind(onJobStop, this);
|
||||||
this.stopping = true;
|
|
||||||
|
|
||||||
|
this.stopping = true;
|
||||||
if (this.statusId) {
|
if (this.statusId) {
|
||||||
this.checking = false;
|
this.checking = false;
|
||||||
this.statusId = clearTimeout(this.statusId);
|
this.statusId = clearTimeout(this.statusId);
|
||||||
@@ -674,7 +674,6 @@ Tunnel.prototype.restart = function(callback) {
|
|||||||
*/
|
*/
|
||||||
Tunnel.prototype.start = function(callback) {
|
Tunnel.prototype.start = function(callback) {
|
||||||
this.once('start', _.callback(callback, this));
|
this.once('start', _.callback(callback, this));
|
||||||
|
|
||||||
if (!(this.starting || this.running)) {
|
if (!(this.starting || this.running)) {
|
||||||
console.log('Opening Sauce Connect tunnel...');
|
console.log('Opening Sauce Connect tunnel...');
|
||||||
this.starting = true;
|
this.starting = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user