Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 83f88c1

Browse files
kwypchlolgalfaso
authored andcommitted
refactor(orderBy): remove unneeded function wrapping
1 parent fb2c585 commit 83f88c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ng/filter/orderBy.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ function orderByFilter($parse) {
130130
}
131131
if (predicate === '') {
132132
// Effectively no predicate was passed so we compare identity
133-
return reverseComparator(function(a, b) {
134-
return compare(a, b);
135-
}, descending);
133+
return reverseComparator(compare, descending);
136134
}
137135
get = $parse(predicate);
138136
if (get.constant) {

0 commit comments

Comments
 (0)