This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
src/main/kotlin/com/mapk/kmapper Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments