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

Commit

Permalink
👕 #27 Formatterの修正を適応
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Jan 15, 2023
1 parent 0868ac7 commit eba09db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/api/isAcceptableCatImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const isAcceptableCatImageNotAcceptableReasons = [
] as const;

export type IsAcceptableCatImageNotAcceptableReason =
typeof isAcceptableCatImageNotAcceptableReasons[number];
(typeof isAcceptableCatImageNotAcceptableReasons)[number];

export type IsAcceptableCatImageResponse = {
isAcceptableCatImage: boolean;
Expand Down
3 changes: 0 additions & 3 deletions src/api/uploadLgtmImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ export const uploadLgtmImage = async (

const response = await fetch(`${dto.apiBaseUrl}/lgtm-images`, options);

console.log(response.status);
console.log(`${dto.apiBaseUrl}/lgtm-images`);

if (response.status !== httpStatusCode.accepted) {
const requestIds = mightExtractRequestIds(response);

Expand Down
3 changes: 2 additions & 1 deletion src/httpStatusCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export const httpStatusCode = {
serviceUnavailable: 503,
} as const;

export type HttpStatusCode = typeof httpStatusCode[keyof typeof httpStatusCode];
export type HttpStatusCode =
(typeof httpStatusCode)[keyof typeof httpStatusCode];
2 changes: 1 addition & 1 deletion src/lgtmImage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const acceptedTypesImageExtensions = ['.png', '.jpg', '.jpeg'] as const;

export type AcceptedTypesImageExtension =
typeof acceptedTypesImageExtensions[number];
(typeof acceptedTypesImageExtensions)[number];

type LgtmImageUrl = `https://${string}`;

Expand Down

0 comments on commit eba09db

Please sign in to comment.