Standard fix

This commit is contained in:
2023-07-02 09:57:55 +10:00
parent e2ee90ce38
commit f30823c566
6 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ module Admin
include Deps["commands.media.delete"]
def handle(req, res)
delete.call(path: File.join(Hanami.app.root, "public", "media",req.params[:year], req.params[:path]))
delete.call(path: File.join(Hanami.app.root, "public", "media", req.params[:year], req.params[:path]))
end
end
end

View File

@@ -15,7 +15,7 @@ module Admin
Dir["#{MEDIA_DIR}*"]
.reverse
.reject do |path|
IGNORE_PATHS.any?{|ip| path.match(ip) }
IGNORE_PATHS.any? { |ip| path.match(ip) }
end
end
end