Skip to content

Commit

Permalink
fix: semantics (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
cirex-web authored Sep 9, 2024
1 parent 72beaa4 commit 9b1ca1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ async function reload(): Promise<void> {
console.log("Loading Dining API...");
const parser = new DiningParser();
const locations = await parser.process();
if (cachedLocations && locations.length < cachedLocations.length - 1) {
if (
cachedLocations !== undefined &&
locations.length < cachedLocations.length - 1
) {
console.log(
"Ignored location fetch since it (likely) has missing data",
locations
Expand Down

0 comments on commit 9b1ca1a

Please sign in to comment.