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:
parent
6f711551d4
commit
2afdf01e5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue