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

Commit ff4eb3d

Browse files
committed
初期化確認は必要なくなったので削除
1 parent 46d7907 commit ff4eb3d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,20 @@ class KMapper<T : Any> private constructor(
9090
val bucket: ArgumentBucket = function.getArgumentBucket()
9191
bindArguments(bucket, srcMap)
9292

93-
if (!bucket.isInitialized) throwExceptionOnNotInitialized(bucket)
94-
9593
return function.call(bucket)
9694
}
9795

9896
fun map(srcPair: Pair<String, Any?>): T {
9997
val bucket: ArgumentBucket = function.getArgumentBucket()
10098
bindArguments(bucket, srcPair)
10199

102-
if (!bucket.isInitialized) throwExceptionOnNotInitialized(bucket)
103-
104100
return function.call(bucket)
105101
}
106102

107103
fun map(src: Any): T {
108104
val bucket: ArgumentBucket = function.getArgumentBucket()
109105
bindArguments(bucket, src)
110106

111-
if (!bucket.isInitialized) throwExceptionOnNotInitialized(bucket)
112-
113107
return function.call(bucket)
114108
}
115109

@@ -124,8 +118,6 @@ class KMapper<T : Any> private constructor(
124118
}
125119
}
126120

127-
if (!bucket.isInitialized) throwExceptionOnNotInitialized(bucket)
128-
129121
return function.call(bucket)
130122
}
131123
}

0 commit comments

Comments
 (0)