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
53ef14c6
Commit
53ef14c6
authored
May 28, 2018
by
Kamil Trzciński
Committed by
Dylan Griffith
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static analysis
parent
782337b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/ci/runner.rb
app/models/ci/runner.rb
+2
-2
No files found.
app/models/ci/runner.rb
View file @
53ef14c6
...
@@ -63,7 +63,7 @@ module Ci
...
@@ -63,7 +63,7 @@ module Ci
validate
:no_groups
,
unless: :group_type?
validate
:no_groups
,
unless: :group_type?
validate
:any_project
,
if: :project_type?
validate
:any_project
,
if: :project_type?
validate
:exactly_one_group
,
if: :group_type?
validate
:exactly_one_group
,
if: :group_type?
validate
:
is_shared_is_vali
d
validate
:
validate_is_share
d
acts_as_taggable
acts_as_taggable
...
@@ -282,7 +282,7 @@ module Ci
...
@@ -282,7 +282,7 @@ module Ci
end
end
end
end
def
is_shared_is_vali
d
def
validate_is_share
d
unless
is_shared?
==
instance_type?
unless
is_shared?
==
instance_type?
errors
.
add
(
:is_shared
,
'is not equal to instance_type?'
)
errors
.
add
(
:is_shared
,
'is not equal to instance_type?'
)
end
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