Skip to content
Browse files

Minor tweak for readability

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6f71155 commit 2afdf01e5c354bdc49b1d1329333a01b7012134b @dhh dhh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/vendor/db2.rb
View
2 activerecord/lib/active_record/vendor/db2.rb
@@ -8,7 +8,7 @@ def free() SQLFreeHandle(@handle_type, @handle); end
def handle() @handle; end
def check_rc(rc)
- if rc != SQL_SUCCESS and rc != SQL_SUCCESS_WITH_INFO and rc != SQL_NO_DATA_FOUND
+ if ![SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA_FOUND].include?(rc)
rec = 1
msg = ''
loop do

0 comments on commit 2afdf01

Please sign in to comment.
Something went wrong with that request. Please try again.