Commit bb6da15
refactor: Handler系コンストラクタの戻り値をHandler interfaceに統一
NewNopHandler, NewRouterHandler, NewSimpleHandler が具体型を返していたのを
Handler interface に統一。内部実装を隠すことで将来の自由度が高まる。
- NewNopHandler() *NopHandler → Handler
- NewRouterHandler(router) *RouterHandler → Handler
- NewSimpleHandler(base) *SimpleHandler → Handler
NewStorageHandler, NewMergeHandler は既に Handler を返しており、
これで全 Handler コンストラクタが統一された。
✨ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Sakura 🌸 <noreply@anthropic.com>1 parent e493a1f commit bb6da15
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments