fixed small rubocop error

This commit is contained in:
Zanz2 2017-11-20 01:02:02 +01:00
parent cf66d94d45
commit e943df9176

View file

@ -153,7 +153,9 @@ module ProtocolsIoHelper
def pio_eval_title_len(tekst)
tekst += ' ' if tekst.length < Constants::NAME_MIN_LENGTH
if tekst.length > Constants::NAME_MAX_LENGTH
tekst = tekst[0..(Constants::NAME_MAX_LENGTH - 60)] + t('protocols.protocols_io_import.too_long')
tekst =
tekst[0..(Constants::NAME_MAX_LENGTH - 60)] +
t('protocols.protocols_io_import.too_long')
@toolong = true
end
tekst