OSDN Git Service

Refactor PLy_spi_prepare to save two levels of indentation
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 24 Jan 2011 20:12:01 +0000 (22:12 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 24 Jan 2011 20:13:06 +0000 (22:13 +0200)
commit52713d02c73926898629e349a9804cd0cae0470b
tree3da3d0f94f382fa4ec06a3682aa94563249a2001
parentea2c2641f908cde198a9999100d847078a05385b
Refactor PLy_spi_prepare to save two levels of indentation

Instead of checking whether the arglist is NULL and then if its length
is 0, do it in one step, and outside of the try/catch block.

Jan Urbański
src/pl/plpython/plpython.c