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

Commit 45b3042

Browse files
committed
nullでなければnullabilityの判定は不要だったため修正
1 parent eaf2d73 commit 45b3042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mapk/core/internal/ArgumentBinder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal sealed class ArgumentBinder(val annotations: List<Annotation>) {
4444
override fun bindArgument(adaptor: ArgumentAdaptor, valueArray: Array<Any?>): Boolean {
4545
val temp = function.call(adaptor)
4646

47-
if (!isNullable && temp == null) return false
47+
if (temp == null && !isNullable) return false
4848

4949
valueArray[index] = temp
5050
return true

0 commit comments

Comments
 (0)