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
Léo-Paul Géneau
gitlab-ce
Commits
53ef14c6
Commit
53ef14c6
authored
6 years ago
by
Kamil Trzciński
Committed by
Dylan Griffith
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static analysis
parent
782337b3
No related merge requests found
Changes
1
Show 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
...
...
This diff is collapsed.
Click to expand it.
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