1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

update deno fmt, update std version, sonar fix

This commit is contained in:
Ean Milligan (Bastion)
2022-06-26 23:08:32 -04:00
parent a7cdd91969
commit c71f6f76e4
6 changed files with 77 additions and 73 deletions

View File

@@ -10,7 +10,7 @@ export const heatmapPng = async (requestEvent: Deno.RequestEvent) => {
requestEvent.respondWith(
new Response(file, {
status: Status.OK,
statusText: STATUS_TEXT.get(Status.OK),
statusText: STATUS_TEXT[Status.OK],
}),
);
};

View File

@@ -4,7 +4,7 @@ import {
STATUS_TEXT,
} from '../../deps.ts';
const genericResponse = (customText: string, status: Status) => new Response(customText || STATUS_TEXT.get(status), { status: status, statusText: STATUS_TEXT.get(status) });
const genericResponse = (customText: string, status: Status) => new Response(customText || STATUS_TEXT[status], { status: status, statusText: STATUS_TEXT[status] });
export default {
BadRequest: (customText: string) => genericResponse(customText, Status.BadRequest),