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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
5d5b80a6
Commit
5d5b80a6
authored
Nov 16, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary check from environments service
parent
3cf516cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
app/services/ci/stop_environments_service.rb
app/services/ci/stop_environments_service.rb
+0
-5
No files found.
app/services/ci/stop_environments_service.rb
View file @
5d5b80a6
...
@@ -6,7 +6,6 @@ module Ci
...
@@ -6,7 +6,6 @@ module Ci
@ref
=
branch_name
@ref
=
branch_name
return
unless
has_ref?
return
unless
has_ref?
return
unless
has_environments?
environments
.
each
do
|
environment
|
environments
.
each
do
|
environment
|
next
unless
environment
.
stoppable?
next
unless
environment
.
stoppable?
...
@@ -22,10 +21,6 @@ module Ci
...
@@ -22,10 +21,6 @@ module Ci
@ref
.
present?
@ref
.
present?
end
end
def
has_environments?
environments
.
any?
end
def
environments
def
environments
@environments
||=
project
@environments
||=
project
.
environments_recently_updated_on_branch
(
@ref
)
.
environments_recently_updated_on_branch
(
@ref
)
...
...
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