Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 30, 2024
1 parent a1e5223 commit 47ab3cc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions server/src/services/api/scannerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ async function scannerApi(
parseFloat(data.scanCoords[0][0].toFixed(5)),
parseFloat(data.scanCoords[0][1].toFixed(5)),
]
: backendConfig.platform === 'dragonite' || backendConfig.platform === 'custom'
: backendConfig.platform === 'dragonite' ||
backendConfig.platform === 'custom'
? data.scanCoords?.map((coord) => [
parseFloat(coord[0].toFixed(5)),
parseFloat(coord[1].toFixed(5)),
Expand Down Expand Up @@ -321,7 +322,10 @@ async function scannerApi(
(scannerResponse.status === 200 || scannerResponse.status === 201) &&
category === 'getQueue'
) {
if (backendConfig.platform === 'dragonite' || backendConfig.platform === 'custom') {
if (
backendConfig.platform === 'dragonite' ||
backendConfig.platform === 'custom'
) {
const { queue } = await scannerResponse.json()
log.info(
HELPERS.scanner,
Expand Down Expand Up @@ -351,7 +355,8 @@ async function scannerApi(
const trimmed = coords
.filter((_c, i) => i < 25)
.map((c) =>
backendConfig.platform === 'dragonite' || backendConfig.platform === 'custom'
backendConfig.platform === 'dragonite' ||
backendConfig.platform === 'custom'
? `${c[0]}, ${c[1]}`
: typeof c === 'object'
? `${'lat' in c && c.lat}, ${'lon' in c && c.lon}`
Expand Down

0 comments on commit 47ab3cc

Please sign in to comment.