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

Commit

Permalink
fix: error.tsとerror.test.tsのフォーマットを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
C4N4242 committed Dec 21, 2023
1 parent e58b0ab commit 79f6a99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/entry/adaptor/errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
// the error code of the conversion destination is written in README.md

function errorToCode(error: Error): string {
switch (error.message) {
case "too many members":
return "TOO_MANY_MEMBERS";
case "no member":
return "NO_MEMBER";
case "teamName Exists":
return "TEAM_ALREADY_EXISTS";
default:
return "UNKNOWN_ERROR";
}
}
switch (error.message) {
case "too many members":
return "TOO_MANY_MEMBERS";
case "no member":
return "NO_MEMBER";
case "teamName Exists":
return "TEAM_ALREADY_EXISTS";
default:
return "UNKNOWN_ERROR";
}
}
2 changes: 1 addition & 1 deletion src/entry/adaptor/errors.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// write something here
// write something here

0 comments on commit 79f6a99

Please sign in to comment.