Skip to content

Commit cbf52d9

Browse files
committed
Address Ruby warnings
This commit addresses the following warnings appeared at Rails Nightly CI https://buildkite.com/rails/rails-nightly/builds/1095#019249e3-405c-4c52-ad8d-497f46a5c6a5/1244-1249 ```ruby /usr/local/lib/ruby/gems/3.4.0+0/gems/solid_queue-1.0.0/lib/solid_queue/supervisor/pidfile.rb:32: warning: assigned but unused variable - e /usr/local/lib/ruby/gems/3.4.0+0/gems/solid_queue-1.0.0/app/models/solid_queue/record.rb:7: warning: ambiguous `**` has been interpreted as an argument prefix ```
1 parent 29b1847 commit cbf52d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/models/solid_queue/record.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module SolidQueue
44
class Record < ActiveRecord::Base
55
self.abstract_class = true
66

7-
connects_to **SolidQueue.connects_to if SolidQueue.connects_to
7+
connects_to(**SolidQueue.connects_to) if SolidQueue.connects_to
88

99
def self.non_blocking_lock
1010
if SolidQueue.use_skip_locked

lib/solid_queue/supervisor/pidfile.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def check_status
2929
else
3030
FileUtils.mkdir_p File.dirname(path)
3131
end
32-
rescue Errno::ESRCH => e
32+
rescue Errno::ESRCH => _e
3333
# Process is dead, ignore, just delete the file
3434
delete
3535
rescue Errno::EPERM

0 commit comments

Comments
 (0)