From bb521794e9f76c58eb325b2ad6b6854e665b2042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A4=AA?= Date: Sat, 23 Feb 2013 15:13:39 +1100 Subject: [PATCH] Fix coding style --- app/assets/javascripts/utility.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/utility.js b/app/assets/javascripts/utility.js index 873cd8fd2..c34c2ba64 100644 --- a/app/assets/javascripts/utility.js +++ b/app/assets/javascripts/utility.js @@ -31,11 +31,9 @@ { if (a[0] < b[0]) { a.shift(); - } - else if (a[0] > b[0]) { + } else if (a[0] > b[0]) { b.shift(); - } - else { + } else { result.push(a.shift()); b.shift(); }