Skip to content

Commit 4ce985a

Browse files
authored
Merge pull request #285 from boostcampwm-2022/Refactor/#284-C
Refactor/#284-C: default 케이스에 throw
2 parents f50b173 + 526edd1 commit 4ce985a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/apis/mom/block/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const putBlock = async (
4343
case BlockType.QUESTION:
4444
break;
4545
default:
46-
return;
46+
throw new Error(`Bad type ${type} received`);
4747
}
4848
};
4949

0 commit comments

Comments
 (0)