Skip to content

Commit

Permalink
domain model의 util package 위치를 이동한다
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeongkyun committed Nov 14, 2023
1 parent 7ecf871 commit 05dc7b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.tagwonder.entities.Tag
import org.tagwonder.exceptions.InvalidCommandException
import org.tagwonder.exceptions.InvalidRequestException
import org.tagwonder.repositories.ITagRepository
import org.tagwonder.usecases.utils.hasDuplicate
import org.tagwonder.utils.hasDuplicate

class CreateTagsCommandExecutor(
private val tagRepository: ITagRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.tagwonder.usecases.queries

import org.tagwonder.queries.*
import org.tagwonder.repositories.ITagRepository
import org.tagwonder.usecases.utils.hasDuplicate
import org.tagwonder.utils.hasDuplicate

class GetTagSummariesQueryProcessor(
private val tagRepository: ITagRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tagwonder.usecases.utils
package org.tagwonder.utils

fun <T> List<T>.hasDuplicate(): Boolean {
return this.size != this.distinct().size
Expand Down

0 comments on commit 05dc7b7

Please sign in to comment.