aboutsummaryrefslogtreecommitdiffstats
path: root/lib/locations.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/locations.ts')
-rw-r--r--lib/locations.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/locations.ts b/lib/locations.ts
index 660645a8..91bc4599 100644
--- a/lib/locations.ts
+++ b/lib/locations.ts
@@ -6,10 +6,7 @@ import got from "got";
const dedup = (array) =>
Object.values(
array.reduce((acc, obj) => {
- if (
- !acc[obj.id] ||
- new Date(obj.updated_at) > new Date(acc[obj.id].updated_at)
- ) {
+ if (!acc[obj.id] || new Date(obj.updated_at) > new Date(acc[obj.id].updated_at)) {
acc[obj.id] = obj;
}
return acc;