Remove unused variables silencing Ruby warnings
Assisted-by: Claude Opus 4.6 via Claude Code
change lrnxywvmwuxwltuvynrpynryxpqmumon
commit 7ef3e208de9c8fed2e6182e7fc9fc0b83ea53dcf
author Alpha Chen <alpha@kejadlen.dev>
date
parent purnnopp
diff --git a/lib/ketchup/views/dashboard.rb b/lib/ketchup/views/dashboard.rb
index ed64475..450ca6a 100644
--- a/lib/ketchup/views/dashboard.rb
+++ b/lib/ketchup/views/dashboard.rb
@@ -45,8 +45,6 @@ module Views
       end
 
       task = overdue.first
-      name = task[:note].lines.first&.strip || task[:note]
-      complete_path = "/series/#{task[:series_id]}/tasks/#{task[:id]}/complete"
 
       section(class: "section section--focus") do
         div(class: "section-header") do
diff --git a/test/test_web.rb b/test/test_web.rb
index ef63dc9..aedc651 100644
--- a/test/test_web.rb
+++ b/test/test_web.rb
@@ -616,9 +616,6 @@ class TestWeb < Minitest::Test
     create_series(note: "Call Mom", interval_unit: "week", interval_count: "2",
                   first_due_date: (Date.today - 3).to_s)
 
-    task = DB[:tasks].first
-    series = DB[:series].first
-
     # Simulate a flash with no undo_path (message only)
     env "rack.session", {"flash" => {"message" => "Something happened"}}
     get "/", {}, auth_headers