Skip to content

Commit c5cb1e1

Browse files
authored
Revert "Do not pass redundant callback to play function if not required (#729)" (#775)
This reverts commit ed05fb9.
1 parent ad98809 commit c5cb1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Sound.prototype.isLoaded = function() {
106106

107107
Sound.prototype.play = function(onEnd) {
108108
if (this._loaded) {
109-
RNSound.play(this._key, onEnd ? (successfully) => onEnd(successfully) : null);
109+
RNSound.play(this._key, (successfully) => onEnd && onEnd(successfully));
110110
} else {
111111
onEnd && onEnd(false);
112112
}

0 commit comments

Comments
 (0)