BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c4718a5f
Commit
c4718a5f
authored
Jul 27, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve consistent-return eslint violation
[ci-skip]
parent
9d5bdb5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
activity_calendar.js
app/assets/javascripts/users/activity_calendar.js
+3
-5
No files found.
app/assets/javascripts/users/activity_calendar.js
View file @
c4718a5f
/* eslint-disable no-var, vars-on-top, eqeqeq, newline-per-chained-call,
prefer-arrow-callback, consistent-return,
one-var, one-var-declaration-per-line, no-unused-vars, no-else-return, max-len, class-methods-use-this */
/* eslint-disable no-var, vars-on-top, eqeqeq, newline-per-chained-call, one-var, one-var-declaration-per-line, no-unused-vars, no-else-return, max-len, class-methods-use-this */
import
d3
from
'd3'
;
import
d3
from
'd3'
;
...
@@ -94,10 +94,8 @@ export default class ActivityCalendar {
...
@@ -94,10 +94,8 @@ export default class ActivityCalendar {
if
(
lastMonth
!=
null
)
{
if
(
lastMonth
!=
null
)
{
lastMonthX
=
lastMonth
.
x
;
lastMonthX
=
lastMonth
.
x
;
}
}
if
(
lastMonth
==
null
)
{
if
(
lastMonth
==
null
||
(
month
!==
lastMonth
.
month
&&
x
-
this
.
daySizeWithSpace
!==
lastMonthX
))
{
return
this
.
months
.
push
({
month
,
x
});
this
.
months
.
push
({
month
,
x
});
}
else
if
(
month
!==
lastMonth
.
month
&&
x
-
this
.
daySizeWithSpace
!==
lastMonthX
)
{
return
this
.
months
.
push
({
month
,
x
});
}
}
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment