Skip to content

Commit 96d7d8e

Browse files
committed
chore: fix linting errors
1 parent b9fd4d5 commit 96d7d8e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const generatePrefixes = ({
3434
liftago: 'lftgpas://',
3535
petalmaps: 'petalmaps://',
3636
sygic: 'com.sygic.aura://',
37-
here: "here-route://"
37+
here: 'here-route://',
3838
};
3939
};
4040

src/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type MapId =
2424
| 'dgis'
2525
| 'liftago'
2626
| 'petalmaps'
27-
| 'sygic'
27+
| 'sygic'
2828
| 'here';
2929

3030
export type DirectionMode = 'car' | 'walk' | 'public-transport' | 'bike';

src/utils.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,11 +562,10 @@ export const generateMapUrl = ({
562562
// so here-route:// is used only to detect if the app is installed and the https url is used for linking
563563

564564
if (address) {
565-
url = `https://share.here.com/r/${(sourceLat && sourceLng) ? `${sourceLat},${sourceLng}/` : ''}${lat},${lng},${address}?m=d`;
565+
url = `https://share.here.com/r/${sourceLat && sourceLng ? `${sourceLat},${sourceLng}/` : ''}${lat},${lng},${address}?m=d`;
566+
} else {
567+
url = `https://share.here.com/r/${sourceLat && sourceLng ? `${sourceLat},${sourceLng}/` : ''}${lat},${lng}?m=d`;
566568
}
567-
else {
568-
url = `https://share.here.com/r/${(sourceLat && sourceLng) ? `${sourceLat},${sourceLng}/` : ''}${lat},${lng}?m=d`;
569-
}
570569
break;
571570
}
572571

0 commit comments

Comments
 (0)