Skip to content

Commit 1344739

Browse files
committed
chore: reformat android module kt file
1 parent f8852a7 commit 1344739

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

android/src/main/java/com/tinywavpackdecoder/TinyWavPackDecoderModule.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ class TinyWavPackDecoderModule(reactContext: ReactApplicationContext) :
7070
bitsPerSampleInt
7171
)
7272

73-
if (result == "Success") {
74-
reactApplicationContext.runOnJSQueueThread {
73+
reactApplicationContext.runOnJSQueueThread {
74+
if (result == "Success") {
7575
promise.resolve(result)
76-
}
77-
} else {
78-
reactApplicationContext.runOnJSQueueThread {
76+
} else {
7977
promise.reject("DECODE_ERROR", result)
8078
}
8179
}
@@ -106,11 +104,11 @@ class TinyWavPackDecoderModule(reactContext: ReactApplicationContext) :
106104

107105
@ReactMethod
108106
fun addListener(eventType: String) {
109-
// Required for RN built in Event Emitter Support
107+
// Required for RN built-in Event Emitter Support
110108
}
111109

112110
@ReactMethod
113111
fun removeListeners(count: Int) {
114-
// Required for RN built in Event Emitter Support
112+
// Required for RN built-in Event Emitter Support
115113
}
116-
}
114+
}

0 commit comments

Comments
 (0)