Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 7d746b1

Browse files
committed
make sure code style like benjaminws
1 parent 749b05f commit 7d746b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/stomp.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ Stomp.prototype.disconnect = function() {
300300
* @param {Object} headers
301301
*/
302302
Stomp.prototype.subscribe = function(headers) {
303-
var self = this;
304-
var destination = headers['destination'];
303+
var self = this,
304+
destination = headers['destination'];
305305
headers['session'] = self.session;
306306
send_command(this, 'SUBSCRIBE', headers);
307307
self._subscribed_to[destination] = true;
@@ -313,8 +313,8 @@ Stomp.prototype.subscribe = function(headers) {
313313
* @param {Object} headers
314314
*/
315315
Stomp.prototype.unsubscribe = function(headers) {
316-
var self = this;
317-
var destination = headers['destination'];
316+
var self = this,
317+
destination = headers['destination'];
318318
headers['session'] = self.session;
319319
send_command(this, 'UNSUBSCRIBE', headers);
320320
self._subscribed_to[destination] = false;
@@ -370,8 +370,8 @@ Stomp.prototype.abort = function(transaction_id) {
370370
* @return {Object} Frame object of message sent
371371
*/
372372
Stomp.prototype.send = function(headers, want_receipt) {
373-
var self = this;
374-
var destination = headers['destination'];
373+
var self = this,
374+
destination = headers['destination'],
375375
body = headers['body'] || null;
376376
delete headers['body'];
377377
headers['session'] = self.session;

0 commit comments

Comments
 (0)