Skip to content

Commit 6ca8523

Browse files
committed
Refactors formatting of heuristic call and footer
Wraps the offlineHeuristic invocation across multiple lines to improve readability Condenses the Petalytic footer into a single inline element to simplify the markup
1 parent 08be15b commit 6ca8523

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/stores/ruixen.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ class Ruixen {
210210
const today = new Date().toDateString();
211211
const d = loadDailyCount();
212212
if (getExhausted() === today || d.count >= DAILY_FREE_LIMIT) {
213-
next.resolve(this.offlineHeuristic(next.pet, this.toJournalEntry(next.entry, next.pet)));
213+
next.resolve(
214+
this.offlineHeuristic(next.pet, this.toJournalEntry(next.entry, next.pet))
215+
);
214216
this.queue.shift();
215217
this.queueSize.set(this.queue.length);
216218
continue;

src/routes/+page.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
</a>
5050
</div>
5151

52-
<div class="mt-10 text-xs" style="color: var(--petalytics-subtle);">
53-
:: Petalytic ::
54-
</div>
52+
<div class="mt-10 text-xs" style="color: var(--petalytics-subtle);">:: Petalytic ::</div>
5553
</main>
5654
</div>

0 commit comments

Comments
 (0)