Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/assets/javascripts/users/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
'
;
...
...
@@ -94,10 +94,8 @@ export default class ActivityCalendar {
if
(
lastMonth
!=
null
)
{
lastMonthX
=
lastMonth
.
x
;
}
if
(
lastMonth
==
null
)
{
return
this
.
months
.
push
({
month
,
x
});
}
else
if
(
month
!==
lastMonth
.
month
&&
x
-
this
.
daySizeWithSpace
!==
lastMonthX
)
{
return
this
.
months
.
push
({
month
,
x
});
if
(
lastMonth
==
null
||
(
month
!==
lastMonth
.
month
&&
x
-
this
.
daySizeWithSpace
!==
lastMonthX
))
{
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