mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-19 10:28:08 +00:00
Fix Style/FormatStringToken
cop in paperclip color extractor
This commit is contained in:
parent
9e260014c7
commit
02d2599545
|
@ -83,7 +83,6 @@ Style/FetchEnvVar:
|
|||
Style/FormatStringToken:
|
||||
Exclude:
|
||||
- 'config/initializers/devise.rb'
|
||||
- 'lib/paperclip/color_extractor.rb'
|
||||
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Style/GlobalStdStream:
|
||||
|
|
|
@ -183,7 +183,7 @@ module Paperclip
|
|||
end
|
||||
|
||||
def rgb_to_hex(rgb)
|
||||
format('#%02x%02x%02x', rgb.r, rgb.g, rgb.b)
|
||||
format('#%<red>02x%<green>02x%<blue>02x', red: rgb.r, green: rgb.g, blue: rgb.b)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue