Skip to content

Commit f57f260

Browse files
committed
refactor: default 케이스에 throw
1 parent 9d554c6 commit f57f260

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)