mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Fix long lines
This commit is contained in:
@@ -11,7 +11,9 @@ class UploadHandler < Kemal::Handler
|
||||
return call_next env
|
||||
end
|
||||
|
||||
ary = env.request.path.split(File::SEPARATOR).select { |part| !part.empty? }
|
||||
ary = env.request.path.split(File::SEPARATOR).select do |part|
|
||||
!part.empty?
|
||||
end
|
||||
ary[0] = @upload_dir
|
||||
path = File.join ary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user