Skip to content

Commit 898c9ce

Browse files
committed
Adds semicolons
1 parent a259b84 commit 898c9ce

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/simperium/channel.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ Channel.prototype.startIndexing = function() {
351351
this.bucket.isIndexing = true;
352352
this.bucket.emit( 'indexing' );
353353
this.sendIndexRequest();
354-
}
354+
};
355355

356356
Channel.prototype.onConnect = function() {
357357
var init = {
@@ -391,8 +391,7 @@ Channel.prototype.onIndex = function( data ) {
391391
} else {
392392
this.sendIndexRequest( mark );
393393
}
394-
}
395-
;
394+
};
396395

397396
Channel.prototype.sendIndexRequest = function( mark ) {
398397
this.send( format( 'i:1:%s::10', mark ? mark : '' ) );
@@ -416,9 +415,9 @@ Channel.prototype.onChanges = function( data ) {
416415
Channel.prototype.onChangeVersion = function( data ) {
417416
if ( data === UNKNOWN_CV ) {
418417
this.store.setChangeVersion( null )
419-
.then( () => this.startIndexing() )
418+
.then( () => this.startIndexing() );
420419
}
421-
}
420+
};
422421

423422
Channel.prototype.onVersion = function( data ) {
424423
var ghost = parseVersionMessage( data );
@@ -500,7 +499,7 @@ LocalQueue.prototype.start = function() {
500499

501500
LocalQueue.prototype.pause = function() {
502501
this.ready = false;
503-
}
502+
};
504503

505504
LocalQueue.prototype.acknowledge = function( change ) {
506505
if ( this.sent[change.id] === change ) {

test/simperium/channel_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,13 @@ describe( 'Channel', function() {
387387

388388
it( 'should request index when cv is unknown', done => {
389389
channel.once( 'send', ( data ) => {
390-
ok( !store.cv )
391-
ok( bucket.isIndexing )
390+
ok( !store.cv );
391+
ok( bucket.isIndexing );
392392
equal( data, 'i:1:::10' );
393-
done()
394-
} )
393+
done();
394+
} );
395395
channel.handleMessage( 'cv:?' );
396-
} )
396+
} );
397397

398398
// TODO: handle auth failures
399399
// <= 0:auth:expired

0 commit comments

Comments
 (0)