diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-05-28 13:56:45 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-31 11:56:41 +0300 |
commit | 53ef14c6765c09601e0ef2bd632741a78f84ae32 (patch) | |
tree | 35e2222ef19d0cc9fd0a03e47088890e5c67de9c /app/models | |
parent | 782337b3f204102ee82d9f40351f150350354a8c (diff) |
Fix static analysis
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/runner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index e2a1c9fb929..5017c983425 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -63,7 +63,7 @@ module Ci validate :no_groups, unless: :group_type? validate :any_project, if: :project_type? validate :exactly_one_group, if: :group_type? - validate :is_shared_is_valid + validate :validate_is_shared acts_as_taggable @@ -282,7 +282,7 @@ module Ci end end - def is_shared_is_valid + def validate_is_shared unless is_shared? == instance_type? errors.add(:is_shared, 'is not equal to instance_type?') end |