Skip to content

Commit

Permalink
Ben's feedback; use numOrDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Aug 28, 2015
1 parent 4d8c899 commit bd26d18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/membership/member.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@

var _ = require('underscore');
var EventEmitter = require('events').EventEmitter;
var numOrDefault = require('../util.js').numOrDefault;
var util = require('util');

function Member(ringpop, update) {
this.ringpop = ringpop;
this.address = update.address;
this.status = update.status;
this.incarnationNumber = update.incarnationNumber;
this.dampScore = update.dampScore || ringpop.config.get('dampScoringInitial');
this.dampScore = numOrDefault(update.dampScore,
ringpop.config.get('dampScoringInitial'));
this.dampedTimestamp = update.dampedTimestamp;

this.lastUpdateTimestamp = null;
Expand Down

0 comments on commit bd26d18

Please sign in to comment.