Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 3c2fc5e

Browse files
committed
引数の長さチェックはここでやる必要がなかったため修正
1 parent 2815114 commit 3c2fc5e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/kotlin/com/mapk/kmapper/KMapper.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ class KMapper<T : Any> private constructor(
3939
ParameterForMap.newInstance(it)
4040
}
4141

42-
init {
43-
if (parameterMap.isEmpty()) throw IllegalArgumentException("This function is not require arguments.")
44-
}
45-
4642
private fun throwExceptionOnNotInitialized(argumentBucket: ArgumentBucket): Nothing {
4743
val notInitializedIndexes = argumentBucket.notInitializedParameterIndexes
4844
function.parameters

0 commit comments

Comments
 (0)