Corrected with rubocop cop 'Style/ClassMethods'.
This commit is contained in:
parent
07d3baee2b
commit
a14e3fa608
2 changed files with 1 additions and 3 deletions
|
@ -272,8 +272,6 @@ Style/MultilineOperationIndentation:
|
|||
Enabled: false
|
||||
Style/OneLineConditional:
|
||||
Enabled: false
|
||||
Style/ClassMethods:
|
||||
Enabled: false
|
||||
Lint/Eval:
|
||||
Enabled: false
|
||||
Style/ModuleFunction:
|
||||
|
|
|
@ -573,7 +573,7 @@ end
|
|||
# workaround to parse subjects with 2 different encodings correctly (e. g. quoted-printable see test/fixtures/mail9.box)
|
||||
module Mail
|
||||
module Encodings
|
||||
def Encodings.value_decode(str)
|
||||
def self.value_decode(str)
|
||||
# Optimization: If there's no encoded-words in the string, just return it
|
||||
return str unless str.index('=?')
|
||||
|
||||
|
|
Loading…
Reference in a new issue