Skip to content

Commit

Permalink
[ci] flags: Fix Lint/UnusedMethodArgument offense
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Nov 13, 2016
1 parent e4328c6 commit c22071a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/api/app/models/flag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def validate_custom_save
errors.add(:name, 'Please set either project or package.') unless project.nil? || package.nil?
errors.add(:flag, 'There needs to be a valid flag.') unless FlagHelper::TYPES.has_key?(flag.to_s)
errors.add(:status, 'Status needs to be enable or disable') unless (status && (status.to_sym == :enable || status.to_sym == :disable))
# rubocop:enable Metrics/LineLength
end

validate :validate_duplicates, on: :create
Expand Down

0 comments on commit c22071a

Please sign in to comment.