Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Remove redundant duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jan 28, 2011
1 parent 99a8e7a commit df88efd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/ldaptic/attribute_set.rb
Expand Up @@ -107,11 +107,7 @@ def compare(target)
# Adds the given attributes, discarding duplicates. All arrays are
# flattened.
def add(*attributes)
dest = @target.dup
safe_array(attributes).each do |attribute|
dest.push(attribute) unless include?(attribute)
end
replace(dest)
replace(@target + safe_array(attributes))
end
alias << add
alias concat add
Expand Down

0 comments on commit df88efd

Please sign in to comment.