Skip to content

Commit 15251f8

Browse files
authored
chore(android): adding non-null operator (#79)
1 parent 16abee5 commit 15251f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/fastrsa/FastRsaModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class FastRsaModule(reactContext: ReactApplicationContext) :
2424
Thread {
2525
reactApplicationContext.runOnJSQueueThread {
2626
try {
27-
val contextHolder = this.reactApplicationContext.javaScriptContextHolder.get()
27+
val contextHolder = this.reactApplicationContext.javaScriptContextHolder!!.get()
2828
if (contextHolder.toInt() == 0) {
2929
call(name, payload, promise)
3030
return@runOnJSQueueThread
@@ -66,7 +66,7 @@ internal class FastRsaModule(reactContext: ReactApplicationContext) :
6666
reactApplicationContext.runOnJSQueueThread {
6767
Log.d(TAG, "installing")
6868
try {
69-
val contextHolder = this.reactApplicationContext.javaScriptContextHolder.get()
69+
val contextHolder = this.reactApplicationContext.javaScriptContextHolder!!.get()
7070
if (contextHolder.toInt() == 0) {
7171
promise.resolve(false)
7272
return@runOnJSQueueThread

0 commit comments

Comments
 (0)