Minor tweak for readability

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-01-04 11:00:48 +00:00
parent 6f711551d4
commit 2afdf01e5c
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module DB2
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