[gjs] promise: Fix missing braces



commit 9746325c70992d890870464a5a29d1c2e8bc16ba
Author: Philip Chimento <philip endlessm com>
Date:   Wed Dec 14 17:14:26 2016 -0800

    promise: Fix missing braces
    
    Caught by benwaffle on IRC
    
    https://bugzilla.gnome.org/show_bug.cgi?id=608450

 modules/_lie.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/_lie.js b/modules/_lie.js
index dbbe78f..0e69a53 100644
--- a/modules/_lie.js
+++ b/modules/_lie.js
@@ -19,9 +19,10 @@ function require(req) {
 
 var process = {
   emit: function (event, error) {
-    if (event === 'unhandledRejection')
+    if (event === 'unhandledRejection') {
       log('Unhandled rejection');
       throw error;
+    }
   },
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]