Skip to content

Commit

Permalink
improve withscore return type
Browse files Browse the repository at this point in the history
  • Loading branch information
maruware committed Jan 6, 2020
1 parent 7736100 commit e797b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/stat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Redis } from 'ioredis'
import { chunk } from 'lodash'

const formatWithScoresResult = (result: string[]) => {
return chunk(result, 2).map(([id, score]) => {
return chunk(result, 2).map<[string, number]>(([id, score]) => {
const s = parseFloat(score)
return [id, s]
})
Expand Down

0 comments on commit e797b3d

Please sign in to comment.