Skip to content

Commit 7496611

Browse files
committed
Apply manual corrections
1 parent 8b25a9d commit 7496611

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/tiny_tds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626

2727
add_dll_paths = proc do |paths, &block|
28-
if path = paths.shift
28+
if (path = paths.shift)
2929
add_dll_path.call(path) do
3030
add_dll_paths.call(paths, &block)
3131
end

test/thread_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ThreadTest < TinyTds::TestCase
4646
@pool.with do |client|
4747
result = client.execute "select dbname()"
4848
result.each { |r| puts r }
49-
rescue Exception => _e
49+
rescue => _e
5050
# We are throwing an error on purpose here since 0.6.1 would
5151
# segfault on errors thrown in threads
5252
end

0 commit comments

Comments
 (0)