Skip to content

Commit 0117c6b

Browse files
authored
chore(android): adding non-null operator (#92)
1 parent 5ea5e57 commit 0117c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/fastopenpgp/FastOpenpgpModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal class FastOpenpgpModule(reactContext: ReactApplicationContext) :
2525
Thread {
2626
reactApplicationContext.runOnJSQueueThread {
2727
try {
28-
val contextHolder = this.reactApplicationContext.javaScriptContextHolder.get()
28+
val contextHolder = this.reactApplicationContext.javaScriptContextHolder!!.get()
2929
if (contextHolder.toInt() == 0) {
3030
call(name, payload, promise)
3131
return@runOnJSQueueThread
@@ -67,7 +67,7 @@ internal class FastOpenpgpModule(reactContext: ReactApplicationContext) :
6767
reactApplicationContext.runOnJSQueueThread {
6868
Log.d(TAG, "installing")
6969
try {
70-
val contextHolder = this.reactApplicationContext.javaScriptContextHolder.get()
70+
val contextHolder = this.reactApplicationContext.javaScriptContextHolder!!.get()
7171
if (contextHolder.toInt() == 0) {
7272
promise.resolve(false)
7373
return@runOnJSQueueThread

0 commit comments

Comments
 (0)