Fix code format

This commit is contained in:
ryo-ma 2020-10-25 20:01:32 +09:00
parent dd9c357dad
commit 3e6f0c90e2

View file

@ -1,7 +1,7 @@
import { ServerRequest } from "./deps.ts";
import { GithubAPIClient } from "./src/github_api_client.ts";
import { Card } from "./src/card.ts";
import { parseParams, CONSTANTS } from "./src/utils.ts";
import { CONSTANTS, parseParams } from "./src/utils.ts";
import { COLORS, Theme } from "./src/theme.ts";
import "https://deno.land/x/dotenv@v0.5.0/load.ts";
@ -15,7 +15,7 @@ export default async (req: ServerRequest) => {
const themeParam: string = params.getStringValue("theme", "default");
let theme: Theme = COLORS.default;
if (Object.keys(COLORS).includes(themeParam)) {
theme = COLORS[themeParam]
theme = COLORS[themeParam];
}
const marginWidth = params.getNumberValue(
"margin-w",
@ -46,7 +46,7 @@ export default async (req: ServerRequest) => {
if (userInfo === null) {
req.respond(
{
body: "Can not find a user with userID: "+username,
body: "Can not find a user with userID: " + username,
status: 404,
headers: new Headers({ "Content-Type": "text" }),
},