Skip to content

Commit 9ab12be

Browse files
committed
Fixed null is not returned.
1 parent 5561afe commit 9ab12be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickpermissions-kotlin/src/main/java/com/livinglifetechway/quickpermissions_kotlin/PermissionsManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private fun <T> runWithPermissionsHandler(target: Any?, permissions: Array<out S
145145

146146
// start requesting permissions for the first time
147147
permissionCheckerFragment.requestPermissionsFromUser()
148-
return result ?: Unit as T
148+
return result as T
149149
}
150150
} else {
151151
// context is null

0 commit comments

Comments
 (0)