From 3cd64a85ba9082587fd2b69a6ca1d84b6adb3cae Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Fri, 14 Mar 2014 15:35:04 +0100
Subject: [PATCH] Fix coding style in test/unit/function_spec.js

---
 test/unit/function_spec.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/test/unit/function_spec.js b/test/unit/function_spec.js
index fd61b1a23..10d0a38c1 100644
--- a/test/unit/function_spec.js
+++ b/test/unit/function_spec.js
@@ -10,21 +10,25 @@ describe('function', function() {
     this.addMatchers({
       toMatchArray: function(expected) {
         var actual = this.actual;
-        if (actual.length != expected.length)
+        if (actual.length != expected.length) {
           return false;
+        }
         for (var i = 0; i < expected.length; i++) {
           var a = actual[i], b = expected[i];
           if (isArray(b)) {
-            if (a.length != b.length)
+            if (a.length != b.length) {
               return false;
+            }
             for (var j = 0; j < a.length; j++) {
               var suba = a[j], subb = b[j];
-              if (suba !== subb)
+              if (suba !== subb) {
                 return false;
+              }
             }
           } else {
-            if (a !== b)
+            if (a !== b) {
               return false;
+            }
           }
         }
         return true;