Fix long lines

This commit is contained in:
Alex Ling
2020-05-05 05:45:20 +00:00
parent c3608c101b
commit 049bd3ab2c
5 changed files with 11 additions and 6 deletions

View File

@@ -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