Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Oct 10, 2018
1 parent 157f438 commit 788040f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/gob-web/modules/course-searcher/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ export function sortAndGroup(
let {sorting, grouping, filtering, limiting} = args
console.time('query: grouping/sorting')

let years = results.map(c => c.year).toSet().sort()
let years = results
.map(c => c.year)
.toSet()
.sort()

if (limiting) {
let year = parseInt(limiting, 10)
results = results.filter(c => c.year === year)
Expand Down

0 comments on commit 788040f

Please sign in to comment.