From ad7b09b43323d0ffc0a8ddabb43e4838a184c697 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Feb 2026 13:18:42 -0800 Subject: formatting --- lib/locations.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/locations.ts') 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; -- cgit v1.2.3