Corrected with rubocop cop 'Style/SpaceInsideRangeLiteral'.
This commit is contained in:
parent
68a6b850a5
commit
33d447cb76
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ class Store::Provider::File
|
|||
# generate directory
|
||||
base = Rails.root.to_s + '/storage/fs/'
|
||||
parts = sha.scan(/.{1,4}/)
|
||||
path = parts[ 1 .. 10 ].join('/') + '/'
|
||||
file = parts[ 11 .. parts.count ].join('')
|
||||
path = parts[ 1..10 ].join('/') + '/'
|
||||
file = parts[ 11..parts.count ].join('')
|
||||
location = "#{base}/#{path}"
|
||||
|
||||
# create directory if not exists
|
||||
|
|
Loading…
Reference in a new issue