Skip to content

Commit 3ae4fd1

Browse files
committed
Run all unsafe autocorrections
1 parent c4873cd commit 3ae4fd1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/tiny_tds/extconf.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
if ENV["MAINTAINER_MODE"]
55
warn "Maintainer mode enabled."
66
$CFLAGS <<
7-
" -Wall" <<
8-
" -ggdb" <<
9-
" -DDEBUG" <<
7+
" -Wall" \
8+
" -ggdb" \
9+
" -DDEBUG" \
1010
" -pedantic"
1111
$LDFLAGS <<
1212
" -ggdb"

test/client_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ClientTest < TinyTds::TestCase
4747
assert_equal encoding, client.charset
4848
assert_equal Encoding.find(encoding), client.encoding
4949
ensure
50-
client.close if client
50+
client&.close
5151
end
5252
end
5353

@@ -58,7 +58,7 @@ class ClientTest < TinyTds::TestCase
5858
begin
5959
client = new_connection dataserver: nil, host: host, port: port
6060
ensure
61-
client.close if client
61+
client&.close
6262
end
6363
end
6464
end

0 commit comments

Comments
 (0)