mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Fix jsHint error.
This commit is contained in:
parent
cba29511bc
commit
1c93932737
@ -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' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user