Remove double type code #2776

This commit is contained in:
Priit Tark 2015-07-21 18:28:18 +03:00
parent 0e4f333c47
commit b06d9b6d14

View file

@ -140,7 +140,7 @@ module Depp
def type_string(type_code)
return '' if type_code.blank?
t = SELECTION_TYPES.select { |tp| tp.second == type_code }
t.try(:first)
t.try(:first).try(:first)
end
end