1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-07-02 16:30:04 +01:00

Fix jsHint error.

This commit is contained in:
hacksalot 2016-01-08 12:24:23 -05:00
parent cba29511bc
commit 1c93932737

View File

@ -130,17 +130,17 @@ Employment gap analysis for HackMyResume.
// date.If so, set the end date to the present date and compute the // date.If so, set the end date to the present date and compute the
// duration normally. // duration normally.
if( coverage.overlaps.length ) { if( coverage.overlaps.length ) {
var l = _.last( coverage.overlaps ); var o = _.last( coverage.overlaps );
if( l && !l.end ) { if( o && !o.end ) {
l.end = moment(); o.end = moment();
l.duration = l.end.diff( l.start, 'days' ); o.duration = o.end.diff( o.start, 'days' );
} }
} }
if( coverage.gaps.length ) { if( coverage.gaps.length ) {
var l = _.last( coverage.gaps ); var g = _.last( coverage.gaps );
if( l && !l.end ) { if( g && !g.end ) {
l.end = moment(); g.end = moment();
l.duration = l.end.diff( l.start, 'days' ); g.duration = g.end.diff( g.start, 'days' );
} }
} }