nil check in ensure
This commit is contained in:
parent
0914bd87e9
commit
55824a4823
|
@ -102,7 +102,7 @@ module XGen
|
||||||
raise "error retrieving database info" unless db.ok?(doc)
|
raise "error retrieving database info" unless db.ok?(doc)
|
||||||
doc
|
doc
|
||||||
ensure
|
ensure
|
||||||
db.close
|
db.close if db
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue