Skip to content

Commit 63c7448

Browse files
committed
refactor: 유효성 검사 메서드 삭제
1 parent 7199c76 commit 63c7448

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/TodoList.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { setItem } from "../utils/storage.js";
2-
import validation from "../utils/validation.js";
32
import { TodoList as TodoLi } from "../types/todo.js";
43

54
export default class TodoList {
@@ -18,10 +17,9 @@ export default class TodoList {
1817
}
1918

2019
setState(nextState: TodoLi) {
21-
const newState = validation.state(nextState);
22-
this.state = newState;
23-
setItem("todo", JSON.stringify(newState));
24-
this.updateCount(newState);
20+
this.state = nextState;
21+
setItem("todo", JSON.stringify(nextState));
22+
this.updateCount(nextState);
2523
this.render();
2624
};
2725

0 commit comments

Comments
 (0)