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
23c277d5
Commit
23c277d5
authored
Jan 15, 2020
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate warnings about unused variables
parent
9fd594b7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
db/fixtures/development/07_milestones.rb
db/fixtures/development/07_milestones.rb
+1
-2
ee/lib/gitlab/contribution_analytics/data_collector.rb
ee/lib/gitlab/contribution_analytics/data_collector.rb
+1
-1
lib/gitlab/git/gitmodules_parser.rb
lib/gitlab/git/gitmodules_parser.rb
+1
-1
spec/support/cycle_analytics_helpers/test_generation.rb
spec/support/cycle_analytics_helpers/test_generation.rb
+1
-1
No files found.
db/fixtures/development/07_milestones.rb
View file @
23c277d5
...
...
@@ -9,8 +9,7 @@ Gitlab::Seeder.quiet do
state:
[
:active
,
:closed
].
sample
,
}
milestone
=
Milestones
::
CreateService
.
new
(
project
,
project
.
team
.
users
.
sample
,
milestone_params
).
execute
Milestones
::
CreateService
.
new
(
project
,
project
.
team
.
users
.
sample
,
milestone_params
).
execute
print
'.'
end
...
...
ee/lib/gitlab/contribution_analytics/data_collector.rb
View file @
23c277d5
...
...
@@ -45,7 +45,7 @@ module Gitlab
end
def
total_events_by_author_count
all_counts
.
each_with_object
({})
do
|
((
author_id
,
target_type
,
action
),
count
),
hash
|
all_counts
.
each_with_object
({})
do
|
((
author_id
,
_target_type
,
_
action
),
count
),
hash
|
hash
[
author_id
]
||=
0
hash
[
author_id
]
+=
count
end
...
...
lib/gitlab/git/gitmodules_parser.rb
View file @
23c277d5
...
...
@@ -71,7 +71,7 @@ module Gitlab
# Convert from an indexed by name to an array indexed by path
# If a submodule doesn't have a path, it is considered bogus
# and is ignored
submodules_by_name
.
each_with_object
({})
do
|
(
name
,
data
),
results
|
submodules_by_name
.
each_with_object
({})
do
|
(
_
name
,
data
),
results
|
path
=
data
.
delete
'path'
next
unless
path
...
...
spec/support/cycle_analytics_helpers/test_generation.rb
View file @
23c277d5
...
...
@@ -117,7 +117,7 @@ module CycleAnalyticsHelpers
data
=
data_fn
[
self
]
end_time
=
rand
(
1
..
10
).
days
.
from_now
end_time_conditions
.
each_with_index
do
|
(
condition_name
,
condition_fn
),
index
|
end_time_conditions
.
each_with_index
do
|
(
_
condition_name
,
condition_fn
),
index
|
Timecop
.
freeze
(
end_time
+
index
.
days
)
{
condition_fn
[
self
,
data
]
}
end
...
...
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