Skip to content

Commit

Permalink
meant v.2.7.0; removed semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed Mar 9, 2018
1 parent 1d92607 commit 357c4bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/endpoints/getTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const getTeam = (config: HLTVConfig) => async ({ id }: { id: number }): Promise<
const twitter = t$('.twitter').parent().attr('href')
const rank = Number(t$('.profile-team-stat .right').first().text().replace('#', '')) || undefined

const arePlayerPicturesOfficial = toArray(t$('.overlayImageFrame')).length > 0;
const playerSelector = arePlayerPicturesOfficial ? '.overlayImageFrame' : '.overlayImageFrame-square';
const playerImageSelector = arePlayerPicturesOfficial ? '.bodyshot-team-img' : '.profileImage';
const arePlayerPicturesOfficial = toArray(t$('.overlayImageFrame')).length > 0
const playerSelector = arePlayerPicturesOfficial ? '.overlayImageFrame' : '.overlayImageFrame-square'
const playerImageSelector = arePlayerPicturesOfficial ? '.bodyshot-team-img' : '.profileImage'

const getPlayerId = (el: Cheerio) => arePlayerPicturesOfficial
? Number((E.popSlashSource(el) as string).split('.')[0])
Expand Down Expand Up @@ -46,7 +46,7 @@ const getTeam = (config: HLTVConfig) => async ({ id }: { id: number }): Promise<

try {
const rankings = JSON.parse(t$('.graph').attr('data-fusionchart-config'))
rankingDevelopment = rankings.dataSource.dataset[0].data.map(x => x.value).map(Number);
rankingDevelopment = rankings.dataSource.dataset[0].data.map(x => x.value).map(Number)
} catch {
rankingDevelopment = []
}
Expand Down

0 comments on commit 357c4bc

Please sign in to comment.