mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
Run 'crystal tool format'
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ struct AdminRouter
|
||||
redirect_url = URI.new \
|
||||
path: "/admin/user/edit",
|
||||
query: hash_to_query({"username" => original_username, \
|
||||
"admin" => admin, "error" => e.message})
|
||||
"admin" => admin, "error" => e.message})
|
||||
redirect env, redirect_url.to_s
|
||||
end
|
||||
|
||||
|
||||
+2
-2
@@ -1144,9 +1144,9 @@ struct APIRouter
|
||||
raise "Entry ID `#{eid}` of `#{title.title}` not found" if entry.nil?
|
||||
|
||||
if entry.is_a? DirectoryEntry
|
||||
file_hash = Digest::SHA1.hexdigest (entry.path + entry.mtime.to_s + entry.size)
|
||||
file_hash = Digest::SHA1.hexdigest(entry.path + entry.mtime.to_s + entry.size)
|
||||
else
|
||||
file_hash = Digest::SHA1.hexdigest (entry.path + entry.mtime.to_s)
|
||||
file_hash = Digest::SHA1.hexdigest(entry.path + entry.mtime.to_s)
|
||||
end
|
||||
e_tag = "W/#{file_hash}"
|
||||
if e_tag == prev_e_tag
|
||||
|
||||
Reference in New Issue
Block a user