Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
syumai committed Aug 14, 2021
1 parent 7a571f0 commit 392cd3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SHELL=/bin/bash
SHELL=/usr/bin/env bash
TARGET_SRC=$(shell shopt -s globstar && ls ./**/*.{ts,js,tsx} | grep -v ./vendor | grep -v ./testdata)

test:
Expand Down
6 changes: 3 additions & 3 deletions response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const encoder = new TextEncoder();
type HeaderMap =
| Headers
| {
[key: string]: any;
};
[key: string]: any;
};

// ResponseBody is a type of response body.
type ResponseBody = string | ReadCloser | Deno.Reader;
Expand Down Expand Up @@ -70,7 +70,7 @@ export function processResponse(res: Response): HTTPResponse {
}

function isStatusHeadersBodyResponse(
res: Response
res: Response,
): res is StatusHeadersBodyResponse {
const r = res as StatusHeadersBodyResponse;
return Array.isArray(r) && r.length === 3;
Expand Down
2 changes: 1 addition & 1 deletion serve_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const testCases: Array<testCase> = [
name: "valid basic handler with path parameters",
registered: get(
"/parameters/:param1/:param2",
({ params }) => `${params.param1} ${params.param2}`
({ params }) => `${params.param1} ${params.param2}`,
),
path: "parameters/p1/p2",
method: Method.GET,
Expand Down

0 comments on commit 392cd3e

Please sign in to comment.