File tree Expand file tree Collapse file tree
android/src/main/java/com/tinywavpackdecoder Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments