mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Cleanup ameba warnings (#551)
This commit is contained in:
parent
740cb188a9
commit
c893172fbf
5 changed files with 7 additions and 36 deletions
|
@ -1,6 +1,7 @@
|
|||
class HTTP::Server::Response
|
||||
class Output
|
||||
def close
|
||||
# ameba:disable Style/NegatedConditionsInUnless
|
||||
unless response.wrote_headers? && !response.headers.has_key?("Content-Range")
|
||||
response.content_length = @out_count
|
||||
end
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
module Kemal
|
||||
class StaticFileHandler < HTTP::StaticFileHandler
|
||||
# ameba:disable Metrics/CyclomaticComplexity
|
||||
def call(context : HTTP::Server::Context)
|
||||
return call_next(context) if context.request.path.not_nil! == "/"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue