Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Aug 16, 2023
1 parent 880400b commit 0119919
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion cheetah.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ export class cheetah extends base<cheetah>() {
if (this.#error) {
res = await this.#error(err, req)
} else {
res = new Exception('Something Went Wrong', undefined, 500).response(req)
res = new Exception('Something Went Wrong', undefined, 500).response(
req,
)
}
}

Expand Down
10 changes: 8 additions & 2 deletions context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const HTTP_MESSAGES = {
'Precondition Required': 428,
'Rate Limit Exceeded': 429,
'Regional Ban': 451,
'Something Went Wrong': 500
'Something Went Wrong': 500,
}

export class Context<
Expand Down Expand Up @@ -110,7 +110,13 @@ export class Context<
return this.#req
}

this.#req = new RequestContext(this.#a, this.#p, this.#r, this.#s, this.exception)
this.#req = new RequestContext(
this.#a,
this.#p,
this.#r,
this.#s,
this.exception,
)

return this.#req
}
Expand Down
5 changes: 1 addition & 4 deletions x/x.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright 2023 Samuel Kopp. All rights reserved. Apache-2.0 license.
/** @jsx h */
import { cheetah } from '../cheetah.ts'
import {
assertEquals,
assertInstanceOf,
} from '../test/deps.ts'
import { assertEquals, assertInstanceOf } from '../test/deps.ts'
import { h, jsx } from './jsx.tsx'
import { createKey, importKey, sign, verify } from './jwt.ts'

Expand Down

0 comments on commit 0119919

Please sign in to comment.