aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorItsLeeOwen2013-08-14 17:57:48 -0400
committerBrian Ford2013-08-14 16:40:36 -0700
commit5e45fd4ac6ff7c00d34deb099fca12301cafd7b0 (patch)
tree999cf4bd980a1229bff10555b6085965b6cd6b2a /src
parent60af2ec9a43a48660ceef3e624556fe3724f9ee5 (diff)
downloadangular.js-5e45fd4ac6ff7c00d34deb099fca12301cafd7b0.tar.bz2
fix(orderBy): remove redundant if statement
Removed unnecessary additional conditional statement.
Diffstat (limited to 'src')
-rw-r--r--src/ng/filter/orderBy.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ng/filter/orderBy.js b/src/ng/filter/orderBy.js
index d1ed3161..bb9d6de5 100644
--- a/src/ng/filter/orderBy.js
+++ b/src/ng/filter/orderBy.js
@@ -125,8 +125,10 @@ function orderByFilter($parse){
var t1 = typeof v1;
var t2 = typeof v2;
if (t1 == t2) {
- if (t1 == "string") v1 = v1.toLowerCase();
- if (t1 == "string") v2 = v2.toLowerCase();
+ if (t1 == "string") {
+ v1 = v1.toLowerCase();
+ v2 = v2.toLowerCase();
+ }
if (v1 === v2) return 0;
return v1 < v2 ? -1 : 1;
} else {