Skip to content

Commit f12363e

Browse files
committed
fix: bodyを受け取らないのでValidationを書ける必要がないため削除
1 parent acb6ec3 commit f12363e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

infra/user.go

-3
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ func (r *UserRepository) Delete(ctx context.Context, user *entity.User) error {
113113
case <-ctx.Done():
114114
return ctx.Err()
115115
default:
116-
if err := user.IsValid(); err != nil {
117-
return err
118-
}
119116
// 該当ユーザの存在確認
120117
gotUser, err := r.FindByID(ctx, user.ID)
121118
if err != nil {

0 commit comments

Comments
 (0)