Indent and minor linting tweaks to the latest merge

This commit is contained in:
2016-06-23 11:42:10 +02:00
parent 9257174f9e
commit 3c6f462175
2 changed files with 121 additions and 118 deletions
+6 -5
View File
@@ -12,10 +12,10 @@ function login() {
loginPdu = {
'cmdName': 'bind_transceiver',
'seqNr': this.ourSeqNr,
'seqNr': this.ourSeqNr,
'params': {
'system_id': this.options.username,
'password': this.options.password
'password': this.options.password
}
};
@@ -95,6 +95,7 @@ function clientSession(sock, options) {
* @param func callback(err, session)
*/
function client(options, callback) {
var sock;
if (typeof options === 'function') {
callback = options;
@@ -111,10 +112,10 @@ function client(options, callback) {
'enqLinkTiming': 20000 // 20 sec
}, options || {});
if(options && options.tls && option.tls === true){
var sock = new tls.Socket();
if (options && options.tls && option.tls === true) {
sock = new tls.Socket();
} else {
var sock = new net.Socket();
sock = new net.Socket();
}
log.debug('larvitsmpp: lib/client.js: client() - Connecting to ' + options.host + ':' + options.port);