aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_sdl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index a2a0bf87..5779103c 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1226,8 +1226,9 @@ var LibrarySDL = {
IMG_Load_RW: function(rwopsID, freesrc) {
var rwops = SDL.rwops[rwopsID];
- if ( rwops === undefined )
+ if (rwops === undefined) {
return 0;
+ }
var filename = rwops.filename;
@@ -1440,8 +1441,7 @@ var LibrarySDL = {
// We found the file. Load the contents
if ( fileObject && !fileObject.isFolder && fileObject.read ) {
bytes = fileObject.contents
- }
- else {
+ } else {
return 0;
}
}