Commit c65bbb8d authored by Kamil Trzciński's avatar Kamil Trzciński Committed by Dylan Griffith

Fix static analysis

parent ad223027
......@@ -64,7 +64,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
......@@ -283,7 +283,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment