Skip to content

Commit

Permalink
👕 Corrige erros no linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mguilarducci committed Jul 19, 2016
1 parent 13ed35e commit 62a6332
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tabeliao.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function getServiceId(pkg) {
}

function getPort(options) {
return options && options.port || 3000;
return (options && options.port) || 3000;
}

function getHost(options) {
return options && options.host || 'localhost';
return (options && options.host) || 'localhost';
}

function getProtocol(options) {
Expand Down Expand Up @@ -92,7 +92,7 @@ function register(options, cb) {
function getKeyValue(result, key, cb) {
/* eslint no-param-reassign: 0 */
consul.kv.get(key, function res(err, data) {
var value = !err && data && data.Value || null;
var value = (!err && data && data.Value) || null;
try {
result[key] = JSON.parse(value);
} catch (ex) {
Expand Down

0 comments on commit 62a6332

Please sign in to comment.