Skip to content

Commit 898f0ea

Browse files
authored
fix: function type in android RNNaverLoginModule.kt file (#216)
* fix: fix function type in android RNNaverLoginModule.kt file * chore: remove extra space
1 parent 04f06f5 commit 898f0ea

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

android/src/main/java/com/dooboolab/naverlogin/RNNaverLoginModule.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
1818
override fun getName() = "RNNaverLogin"
1919

2020
@ReactMethod
21-
fun logout(promise: Promise) =
21+
fun logout(promise: Promise) {
2222
UiThreadUtil.runOnUiThread {
2323
callLogout()
2424
promise.safeResolve(null)
2525
}
26+
}
2627

2728
private fun callLogout() =
2829
try {
@@ -46,7 +47,7 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
4647
}
4748

4849
@ReactMethod
49-
fun login(promise: Promise) =
50+
fun login(promise: Promise) {
5051
UiThreadUtil.runOnUiThread {
5152
loginPromise = promise
5253
if (currentActivity == null) {
@@ -80,9 +81,10 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
8081
onLoginFailure(je.localizedMessage)
8182
}
8283
}
84+
}
8385

8486
@ReactMethod
85-
fun deleteToken(promise: Promise) =
87+
fun deleteToken(promise: Promise) {
8688
UiThreadUtil.runOnUiThread {
8789
NidOAuthLogin().callDeleteTokenApi(
8890
object : OAuthLoginCallback {
@@ -100,6 +102,7 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
100102
},
101103
)
102104
}
105+
}
103106

104107
companion object {
105108
private var loginPromise: Promise? = null

0 commit comments

Comments
 (0)