Skip to content

Commit

Permalink
fixup! lib: change multiline function signatures style
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Mar 5, 2017
1 parent d50dc85 commit 3f831c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ apps.Application = Application;
// args - method arguments
// callback - method callback
//
Application.prototype.callMethod = function(
connection, interfaceName, methodName, args, callback) {
Application.prototype.callMethod = function(connection, interfaceName,
methodName, args, callback) {
const appInterface = this.api[interfaceName];
if (!appInterface) {
return callback(errors.ERR_INTERFACE_NOT_FOUND);
Expand Down
8 changes: 4 additions & 4 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ Client.prototype.disconnect = function(callback) {
// password - user password (or null for anonymous session)
// callback - callback function with signature (error, connection, sessionId)
//
Client.prototype.connectAndHandshake = function(
appName, username, password, callback) {
Client.prototype.connectAndHandshake = function(appName,
username, password, callback) {
this.connect((error, connection) => {
if (error) {
return callback(error);
Expand All @@ -102,8 +102,8 @@ Client.prototype.connectAndHandshake = function(
// callback - callback function with signature
// (error, connection, sessionId, api)
//
Client.prototype.connectAndInspect = function(
appName, username, password, interfaces, callback) {
Client.prototype.connectAndInspect = function(appName,
username, password, interfaces, callback) {
this.connectAndHandshake(
appName, username, password, (error, connection, sid) => {
if (error) {
Expand Down
12 changes: 6 additions & 6 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ util.inherits(Connection, events.EventEmitter);
// callback - callback function that is invoked after a callback packet
// has been received
//
Connection.prototype.callMethod = function(
interfaceName, methodName, args, callback) {
Connection.prototype.callMethod = function(interfaceName, methodName,
args, callback) {
const packet = this.createPacket('call', interfaceName, methodName, args);
const packetId = packet.call[0];
this._callbacks[packetId] = callback || common.doNothing;
Expand Down Expand Up @@ -105,8 +105,8 @@ Connection.prototype.callback = function(packetId, error, result) {
// eventName - name of an event
// args - event arguments as an object
//
Connection.prototype.emitRemoteEvent = function(
interfaceName, eventName, args) {
Connection.prototype.emitRemoteEvent = function(interfaceName,
eventName, args) {
const packet = this.createPacket('event', interfaceName, eventName, args);
this._send(packet);
};
Expand Down Expand Up @@ -585,8 +585,8 @@ Connection.prototype._processPongPacket = function(packet) {
// error - error that has occured, if any
// result - data to send back as a result
//
Connection.prototype._remoteCallbackWrapper = function(
packetId, error, ...result) {
Connection.prototype._remoteCallbackWrapper = function(packetId,
error, ...result) {
this.callback(packetId, error, result);
};

Expand Down

0 comments on commit 3f831c4

Please sign in to comment.